Skip to content

Instantly share code, notes, and snippets.

@punchagan
Created August 3, 2019 15:58
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 punchagan/d3fbd777b467d4d3ebabd23fb7784406 to your computer and use it in GitHub Desktop.
Save punchagan/d3fbd777b467d4d3ebabd23fb7784406 to your computer and use it in GitHub Desktop.
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