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:
parent
7f0eb9dafd
commit
32fbffbaad
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue