Skip to content

Commit 4927694

Browse files
committed
readme file updated
1 parent 8a67648 commit 4927694

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

Readme.md

+25-19
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,34 @@ Returns brief details about the user, such as the total number of contests parti
1414
```pycon
1515
import requests
1616

17-
url = "https://domain.com/user-stats"
17+
url = "http://localhost:5000/user-stats"
1818
res = requests.post(url, headers={"username": "yash2003bisht"})
1919
print(res.json())
2020
```
2121

2222
#### sample response
2323
```json lines
2424
{
25-
"codechef_pro_plan": "No Active Plan",
26-
"contest_participate": 2,
27-
"country": "India",
28-
"country_rank": 93736,
29-
"division": "(Div 4)",
30-
"global_rank": 100753,
31-
"link": "https://yash2003bisht.github.io/",
32-
"problem_fullysolved": 206,
33-
"problem_partiallysolved": 0,
34-
"rating": 1346,
35-
"student/professional": "Other",
36-
"teams_list": "https://www.codechef.com/users/yash2003bisht/teams",
37-
"total_stars": 1,
38-
"username": "yash2003bisht"
25+
"badges": {
26+
"1v1_challenge_badge": "bronze_badge",
27+
"daily_streak": "gold_badge",
28+
"problem_solver": "silver_badge"
29+
},
30+
"codechef_pro_plan": "No Active Plan",
31+
"contest_participate": 5,
32+
"country": "India",
33+
"country_rank": 84362,
34+
"discuss_profile": "https://discuss.codechef.com/u/yash2003bisht",
35+
"division": "(Div 4)",
36+
"global_rank": 90654,
37+
"link": "https://yash2003bisht.github.io/",
38+
"problem_fully_solved": 444,
39+
"problem_partially_solved": 0,
40+
"rating": 1279,
41+
"student/professional": "Other",
42+
"teams_list": "https://www.codechef.com/users/yash2003bisht/teams",
43+
"total_stars": 1,
44+
"username": "yash2003bisht"
3945
}
4046
```
4147

@@ -46,7 +52,7 @@ Returns all details about user contests participated.
4652
```pycon
4753
import requests
4854

49-
url = "https://domain.com/contest-details"
55+
url = "http://localhost:5000/contest-details"
5056
res = requests.post(url, headers={"username": "yash2003bisht"})
5157
print(res.json())
5258
```
@@ -89,7 +95,7 @@ Returns a list of links containing all questions solved by user.
8995
```pycon
9096
import requests
9197

92-
url = "https://domain.com/solved"
98+
url = "http://localhost:5000/solved"
9399
res = requests.post(url, headers={"username": "yash2003bisht"})
94100
print(res.json())
95101
```
@@ -98,7 +104,7 @@ print(res.json())
98104
```json lines
99105
{
100106
"solved_links": [
101-
"https://www.codechef.com/status/TEAMSEL,testing"
107+
"https://www.codechef.com/status/FLOW006?usernames=yash2003bisht"
102108
],
103109
"total_solved": 1
104110
}
@@ -111,7 +117,7 @@ Returns data from the submissions graph section.
111117
```pycon
112118
import requests
113119

114-
url = "https://domain.com/submission-details"
120+
url = "http://localhost:5000/submission-details"
115121
res = requests.post(url, headers={"username": "yash2003bisht"})
116122
print(res.json())
117123
```

0 commit comments

Comments
 (0)