Created
October 6, 2021 08:27
-
-
Save RizqiEka/d3e104b76b1a846853f4bf8cb1b1b29c to your computer and use it in GitHub Desktop.
This file contains 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
# Define Endpoint Parameters | |
endpointParams = dict() | |
endpointParams['input_token'] = params['access_token'] | |
endpointParams['access_token'] = params['access_token'] | |
# Define URL | |
url = params['graph_domain'] + '/debug_token' | |
# Requests Data | |
data = requests.get(url, endpointParams) | |
access_token_data = json.loads(data.content) | |
access_token_data |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment