From 32fbffbaad928462eeaa57641e2f4ce17f20e243 Mon Sep 17 00:00:00 2001 From: Mohammed ALDOUB Date: Thu, 31 Jan 2013 00:58:27 +0300 Subject: [PATCH] Update twython/twython.py Updated all URLs to have https instead of http for increased (and frankly, required) security: self.request_token_url = 'https://twitter.com/oauth/request_token' self.access_token_url = 'https://twitter.com/oauth/access_token' self.authorize_url = 'https://twitter.com/oauth/authorize' self.authenticate_url = 'https://twitter.com/oauth/authenticate' self.api_url = 'https://api.twitter.com/%s/' --- twython/twython.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/twython/twython.py b/twython/twython.py index 2f7f787..322d77f 100644 --- a/twython/twython.py +++ b/twython/twython.py @@ -169,11 +169,11 @@ class Twython(object): OAuthHook.consumer_secret = twitter_secret # Needed for hitting that there API. - self.request_token_url = 'http://twitter.com/oauth/request_token' - self.access_token_url = 'http://twitter.com/oauth/access_token' - self.authorize_url = 'http://twitter.com/oauth/authorize' - self.authenticate_url = 'http://twitter.com/oauth/authenticate' - self.api_url = 'http://api.twitter.com/%s/' + self.request_token_url = 'https://twitter.com/oauth/request_token' + self.access_token_url = 'https://twitter.com/oauth/access_token' + self.authorize_url = 'https://twitter.com/oauth/authorize' + self.authenticate_url = 'https://twitter.com/oauth/authenticate' + self.api_url = 'https://api.twitter.com/%s/' self.twitter_token = twitter_token self.twitter_secret = twitter_secret