__license__ = 'MIT'
from tweepy.api import API
-from tweepy.auth import AppAuthHandler, OAuthHandler, OAuth2Handler
+from tweepy.auth import (
+ AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2Handler
+)
from tweepy.cache import Cache, FileCache, MemoryCache
from tweepy.client import Client, Response
from tweepy.cursor import Cursor
return request
-class AppAuthHandler(AuthHandler):
+class OAuth2AppHandler(AuthHandler):
"""Application-only authentication handler"""
OAUTH_HOST = 'api.twitter.com'
def apply_auth(self):
return OAuth2Bearer(self._bearer_token)
+
+AppAuthHandler = OAuth2AppHandler