You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up an automated token refresh flow. The documentation for tweepy.OAuth2UserHandler shows the following 3 entries:
Auto_refresh_url
Refresh token endpoint URL, must be HTTPS. Supply this if you wish the client to automatically refresh your access tokens.
Auto_refresh_kwargs
Extra arguments to pass to the refresh token endpoint.
Token_updater
Method with one argument, token, to be used to update your token database on automatic token refresh. If not set a TokenUpdated warning will be raised when a token has been refreshed. This warning will carry the token in its token argument.
However I cannot find a way to pass those arguments while instantiating from tweepy.OAuth2UserHandler. As far as I can see, the code has to be extended something like below. Notice the **kwargs keyword (could also be made more explicit).
I'm also trying to use OAuth2 with a refresh token. It seems there are pull requests open at the moment which enable usage of a refresh token
At the time of writing:
I am trying to set up an automated token refresh flow. The documentation for tweepy.OAuth2UserHandler shows the following 3 entries:
However I cannot find a way to pass those arguments while instantiating from
tweepy.OAuth2UserHandler
. As far as I can see, the code has to be extended something like below. Notice the**kwargs
keyword (could also be made more explicit).The text was updated successfully, but these errors were encountered: