Skip to content

Commit 947a25d

Browse files
committed
Update docs
1 parent c79810c commit 947a25d

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

docs/user_guide/quickstart.rst

+4-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ the logged in :class:`CodinGamer` with the
238238
client = codingame.Client()
239239
client.login("email", "password")
240240
241-
notifications = client.get_unseen_notifications()
241+
notifications = list(client.get_unseen_notifications())
242242
243243
print(f"{len(notifications)} unseen notifications:")
244244
for notification in notifications:
@@ -255,7 +255,9 @@ the logged in :class:`CodinGamer` with the
255255
client = codingame.Client(is_async=True)
256256
await client.login("email", "password")
257257
258-
notifications = await client.get_unseen_notifications()
258+
notifications = []
259+
async for notification in client.get_unseen_notifications():
260+
notifications.append(notification)
259261
260262
print(f"{len(notifications)} unseen notifications:")
261263
for notification in notifications:

todo.md

-14
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ JSON: `[user id, {"SHORT":true}, recaptcha]`
121121
Additional info: Recaptcha and login needed
122122
Source: network tab while searching on codingame
123123

124-
### Find unread notifications
125-
126-
Endpoint: `Notification/findUnreadNotifications`
127-
JSON: `[user id]`
128-
Additional info: Login needed
129-
Source: network tab while searching on codingame
130-
131124
### Mark notifications as seen
132125

133126
Endpoint: `Notification/markAsSeen`
@@ -142,13 +135,6 @@ JSON: `[user id, [notification ids...]]`
142135
Additional info: Login needed
143136
Source: network tab while searching on codingame
144137

145-
### Find last read notifications
146-
147-
Endpoint: `Notification/findLastReadNotifications`
148-
JSON: `[user id, null]`
149-
Additional info: Login needed
150-
Source: network tab while searching on codingame
151-
152138
### Create private clash of code
153139

154140
Endpoint: `ClashOfCode/createPrivateClash`

0 commit comments

Comments
 (0)