from tweepy.api import API
from tweepy.auth import (
AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2BearerHandler,
- OAuth2Handler
+ OAuth2UserHandler
)
from tweepy.cache import Cache, FileCache, MemoryCache
from tweepy.client import Client, Response
raise TweepyException(e)
-class OAuth2Handler(OAuth2Session):
+class OAuth2UserHandler(OAuth2Session):
def __init__(self, *, client_id, redirect_uri, scope, client_secret=None):
super().__init__(client_id, redirect_uri=redirect_uri, scope=scope)