Skip to content

RazdorChat/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

Python

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published