As per my reading, I can see curl to get the access_token using my refresh token. How can i reuse my refresh token using python. Thanks and sorry if this is a kind of any duplicate.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
If you are using the Google APIs Python Client Library, the refresh token will be used automatically when your access token expires. The OAuth2Credentials object has a refresh()
method for doing this manually. More information here: https://developers.google.com/api-client-library/python/guide/aaa_oauth#OAuth2Credentials