Skip to content

Instantly share code, notes, and snippets.

@coinscious-io
Created August 2, 2019 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coinscious-io/0c458c951d91153589c79794e757b44c to your computer and use it in GitHub Desktop.
Save coinscious-io/0c458c951d91153589c79794e757b44c to your computer and use it in GitHub Desktop.
How to get your JWT token
import requests
url = "https://auth-api.coinscious.org/auth/access-token"
payload = "{\n \"handle\": \"<username>\",\n \"password\": \"<password>\"\n}"
headers = {
'Content-Type': "application/json"
}
response = requests.request("POST", url, data=payload, headers=headers)
print(response.text)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment