from tweepy.api import API
from tweepy.auth import (
- AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2Handler
+ AppAuthHandler, OAuthHandler, OAuth2AppHandler, OAuth2BearerHandler,
+ OAuth2Handler
)
from tweepy.cache import Cache, FileCache, MemoryCache
from tweepy.client import Client, Response
request.headers['Authorization'] = 'Bearer ' + self.bearer_token
return request
+ def apply_auth(self):
+ return self
+
class OAuth2AppHandler(AuthHandler):
"""Application-only authentication handler"""