Skip to content

Commit 9456562

Browse files
paradox70python273
authored andcommitted
Add replacing current access token after revoke (#18)
1 parent 8d1f500 commit 9456562

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

telegraph/api.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,11 @@ def revoke_access_token(self):
113113
On success, returns dict with new access_token and auth_url fields
114114
"""
115115

116-
return self._telegraph.method('revokeAccessToken')
116+
response = self._telegraph.method('revokeAccessToken')
117+
118+
self._telegraph.access_token = response.get('access_token')
119+
120+
return response
117121

118122
def get_page(self, path, return_content=True, return_html=True):
119123
""" Get a Telegraph page

0 commit comments

Comments
 (0)