Skip to content

Instantly share code, notes, and snippets.

@webprice
Last active January 30, 2022 16:46
Show Gist options
  • Save webprice/9247b28056bba2b3fc2bf43be48cd398 to your computer and use it in GitHub Desktop.
Save webprice/9247b28056bba2b3fc2bf43be48cd398 to your computer and use it in GitHub Desktop.
You can start by registering your account by sending a simple JSON request:
#You can start by registering your account by sending a simple JSON request
#Route: https://ddnames.com:8000/register/
#request you should send within your device in JSON format:
{
"email":"YourEmail",
"password":"password"
}
#Don't forget to remember the API key, the system will generate it for you.
####################################################################################
#Get the bearer token by performing the login process by accessing the route:
#Route: https://ddnames.com:8000/login
#request you should send within your device in JSON format:
{
"email":"YourEmail",
"password":"password"
}
#Example of an answer:
{
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoyLCJleHAiOjE2NDMyNTIxNzR9.e4Kz-ruO2ohgu6kCKoceBroMCycd-yUAqBVGFN2jThs",
"token_type": "bearer"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment