Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
UPAI topscore request example
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
You can’t perform that action at this time.