File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,14 @@ def get_ans(self, questions_list):
9494 return ans
9595
9696 # Get an access token and extract to a JSON file "access_token.json"
97+ @classmethod
9798 def setCustomKey (self ):
9899 client_id = 20013
99100
100101 # scopes possible values:
101102 # read_inbox - access a user's global inbox
102103 # no_expiry - access_token's with this scope do not expire
103- # write_access - perform write operations as a user
104+ # write_access - perform write operations as a user
104105 # private_info - access full history of a user's private actions on the site
105106 scopes = 'read_inbox'
106107
@@ -121,7 +122,7 @@ def setCustomKey(self):
121122 jsonDict = {
122123 "access_token" : accessTokenData ['access_token' ],
123124 "expires" : accessTokenData ['expires' ],
124- "state" : accessTokenData [ ' state' ]
125+ "state" : state
125126 }
126127
127128 with open ('access_token.json' , 'w' ) as jsonFile :
You can’t perform that action at this time.
0 commit comments