import requests as r
# creating user
d = r.post("https://razdor/chat/v1/user/create", json={"username": "some username", "password": "some password"})
print(d.json())
# you should get the op "Created." with an ID in the json
print(d.json()['id'])
# logging in / generating an auth key
d = r.post("https://razdor/chat/v1/user/create", json={"auth": "your password"})
# you should get json containing 'authentication' (your auth key / token)
# this is what you use for authentication for needed endpoints.
# will add more later
-
Notifications
You must be signed in to change notification settings - Fork 0
RazdorChat/examples
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published