Created
August 3, 2019 15:58
-
-
Save punchagan/d3fbd777b467d4d3ebabd23fb7784406 to your computer and use it in GitHub Desktop.
UPAI topscore request example
This file contains hidden or 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 | |
import json | |
# Obtain this from https://upai.usetopscore.com/u/oauth-key | |
client_id = 'XXX' | |
client_secret = 'YYY' | |
data = { | |
'grant_type': 'client_credentials', | |
'client_id': client_id, | |
"client_secret": client_secret, | |
} | |
response = requests.post("https://upai.usetopscore.com/api/oauth/server", json=data) | |
print(response.json()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment