def GetAuthorized():
REDIRECT_URL="http://localhost:9000/auth"
CLIENT_ID="xxxxxxx"
a_url = 'https://api.application.com/oauth2/authorize?client_id=' + CLIENT_ID +'&redirect_uri=' + REDIRECT_URL + '&response_type=code'
webbrowser.open(a_url)
executing above code results in a page loading error “Firefox cannot connect to the server at localhost:9000”
in the address bar (first line in i.e. firefox) following address is displayed:
http://localhost:9000/auth?code=dye3tuyoCi
how is it possible to access the code with python?
OS = Windows 11