Created
August 2, 2019 18:28
-
-
Save coinscious-io/0c458c951d91153589c79794e757b44c to your computer and use it in GitHub Desktop.
How to get your JWT token
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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