Last active
September 11, 2022 11:58
-
-
Save ritik1009/cff7493100cfba040419d2ea596cf00c 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
import requests | |
import urllib.parse | |
client_id = 777777777777777 # instagram APP ID | |
client_secret = '777777777777777777' # instagarm App Secret | |
redirect_uri = 'https://user_name.github.io/' | |
auth_url = 'https://api.instagram.com/' | |
graph_url = 'https://graph.instagram.com/' | |
def get_the_authorization_window(): | |
url = auth_url + 'oauth/authorize' | |
param = dict() | |
param['client_id'] = client_id | |
param['redirect_uri'] = redirect_uri | |
param['scope'] = 'user_profile,user_media' | |
param['response_type'] = 'code' | |
parameters = urllib.parse.urlencode(param) | |
url = url +'?'+ parameters | |
print('\n parameters',url) | |
get_the_authorization_window() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment