Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "CLIENT_SECRET": "<value>",
- "CLIENT_ID": "<value>"
- }
- # Get OAuth 2.0 tokens from JSON file
- with open('tokens.json', encoding='utf-8') as tokens_file:
- oauth_tokens_from_json = json.loads(tokens_file.read())
- client_token = oauth_tokens_from_json["CLIENT_SECRET"]
- client_id = oauth_tokens_from_json["CLIENT_ID"]
Add Comment
Please, Sign In to add comment