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/'
This commit is contained in:
Mohammed ALDOUB 2013-01-31 00:58:27 +03:00
parent 7f0eb9dafd
commit 32fbffbaad

View file

@ -169,11 +169,11 @@ class Twython(object):
OAuthHook.consumer_secret = twitter_secret OAuthHook.consumer_secret = twitter_secret
# Needed for hitting that there API. # Needed for hitting that there API.
self.request_token_url = 'http://twitter.com/oauth/request_token' self.request_token_url = 'https://twitter.com/oauth/request_token'
self.access_token_url = 'http://twitter.com/oauth/access_token' self.access_token_url = 'https://twitter.com/oauth/access_token'
self.authorize_url = 'http://twitter.com/oauth/authorize' self.authorize_url = 'https://twitter.com/oauth/authorize'
self.authenticate_url = 'http://twitter.com/oauth/authenticate' self.authenticate_url = 'https://twitter.com/oauth/authenticate'
self.api_url = 'http://api.twitter.com/%s/' self.api_url = 'https://api.twitter.com/%s/'
self.twitter_token = twitter_token self.twitter_token = twitter_token
self.twitter_secret = twitter_secret self.twitter_secret = twitter_secret