GoToSocial-FE-Example/register_app.py

15 lines
262 B
Python
Executable File

#!/usr/bin/python
from requests import post
payload={
'client_name':'anotherone',
'redirect_uris':'localhost:5000'
}
def register_app():
resp = post('https://gts.werefox.cafe/api/v1/apps', data=payload)
return resp.text
print(register_app())