Guest User

Untitled

a guest
Dec 18th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. {
  2. "CLIENT_SECRET": "<value>",
  3. "CLIENT_ID": "<value>"
  4. }
  5.  
  6. # Get OAuth 2.0 tokens from JSON file
  7. with open('tokens.json', encoding='utf-8') as tokens_file:
  8. oauth_tokens_from_json = json.loads(tokens_file.read())
  9.  
  10. client_token = oauth_tokens_from_json["CLIENT_SECRET"]
  11. client_id = oauth_tokens_from_json["CLIENT_ID"]
Add Comment
Please, Sign In to add comment