from tweepy.api import API
from tweepy.auth import (
- AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2BearerHandler,
- OAuth2UserHandler
+ AppAuthHandler, OAuthHandler, OAuth1UserHandler, OAuth2AppHandler,
+ OAuth2BearerHandler, OAuth2UserHandler
)
from tweepy.cache import Cache, FileCache, MemoryCache
from tweepy.client import Client, Response
log = logging.getLogger(__name__)
-class OAuthHandler:
+class OAuth1UserHandler:
def __init__(self, consumer_key, consumer_secret, access_token=None,
access_token_secret=None, callback=None):
except Exception as e:
raise TweepyException(e)
+OAuthHandler = OAuth1UserHandler
+
class OAuth2AppHandler: