Endpoint; /me/notifications
Response type: json
POST body parameters required-
count
: Int
seen
: Boolean (Whether the notification has been viewed or not)
Python example:
import requests, json
token = "XXXX"
api = "https://replit-oauth.coolcodersj.repl.co/api/v1"
notifs = requests.post(f"{api}/me/notifications", headers={
"Authorization": f"Bearer {token}"
}, data=json.dumps({
"count": 10,
"seen": True
}))
notifs = notifs.json()