diff --git a/get_access_token.py b/get_access_token.py index a0f273a6..df25b75d 100644 --- a/get_access_token.py +++ b/get_access_token.py @@ -35,7 +35,7 @@ print ("Visit this page and authorize access in your browser: "+ redirect_uri) -code = (str(input("Paste in code in query string after redirect: ").strip())) +code = (eval(input("Paste in code in query string after redirect: ").strip())) access_token = api.exchange_code_for_access_token(code) print ("access token: " )