@@ -14,28 +14,34 @@ Returns brief details about the user, such as the total number of contests parti
14
14
``` pycon
15
15
import requests
16
16
17
- url = "https ://domain.com /user-stats"
17
+ url = "http ://localhost:5000 /user-stats"
18
18
res = requests.post(url, headers={"username": "yash2003bisht"})
19
19
print(res.json())
20
20
```
21
21
22
22
#### sample response
23
23
``` json lines
24
24
{
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"
39
45
}
40
46
```
41
47
@@ -46,7 +52,7 @@ Returns all details about user contests participated.
46
52
``` pycon
47
53
import requests
48
54
49
- url = "https ://domain.com /contest-details"
55
+ url = "http ://localhost:5000 /contest-details"
50
56
res = requests.post(url, headers={"username": "yash2003bisht"})
51
57
print(res.json())
52
58
```
@@ -89,7 +95,7 @@ Returns a list of links containing all questions solved by user.
89
95
``` pycon
90
96
import requests
91
97
92
- url = "https ://domain.com /solved"
98
+ url = "http ://localhost:5000 /solved"
93
99
res = requests.post(url, headers={"username": "yash2003bisht"})
94
100
print(res.json())
95
101
```
@@ -98,7 +104,7 @@ print(res.json())
98
104
``` json lines
99
105
{
100
106
"solved_links" : [
101
- " https://www.codechef.com/status/TEAMSEL,testing "
107
+ " https://www.codechef.com/status/FLOW006?usernames=yash2003bisht "
102
108
],
103
109
"total_solved" : 1
104
110
}
@@ -111,7 +117,7 @@ Returns data from the submissions graph section.
111
117
``` pycon
112
118
import requests
113
119
114
- url = "https ://domain.com /submission-details"
120
+ url = "http ://localhost:5000 /submission-details"
115
121
res = requests.post(url, headers={"username": "yash2003bisht"})
116
122
print(res.json())
117
123
```
0 commit comments