client_secret=consumer_secret,
callback_uri=self.callback)
- def _get_oauth_url(self, endpoint):
- return 'https://api.twitter.com/oauth/' + endpoint
-
def apply_auth(self):
return OAuth1(self.consumer_key,
client_secret=self.consumer_secret,
resource_owner_secret=self.access_token_secret,
decoding=None)
+ def _get_oauth_url(self, endpoint):
+ return 'https://api.twitter.com/oauth/' + endpoint
+
def _get_request_token(self, access_type=None):
try:
url = self._get_oauth_url('request_token')
except Exception as e:
raise TweepyException(e)
- def set_access_token(self, key, secret):
- self.access_token = key
- self.access_token_secret = secret
-
def get_authorization_url(self,
signin_with_twitter=False,
access_type=None):
except Exception as e:
raise TweepyException(e)
+ def set_access_token(self, key, secret):
+ self.access_token = key
+ self.access_token_secret = secret
+
class OAuthHandler(OAuth1UserHandler):
"""Alias for :class:`OAuth1UserHandler`