From 402ae07aeaa963203ea769dcdb7e5eebb2cd366c Mon Sep 17 00:00:00 2001 From: Harshit Rai Date: Thu, 1 Oct 2020 21:51:32 +0530 Subject: [PATCH] Update get_access_token.py --- get_access_token.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: " )