Skip to content

Commit d7f0f6c

Browse files
committed
Updated twitter example to use https. This fixes mitsuhiko#26
1 parent f655275 commit d7f0f6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

example/tweet.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@
2121
twitter = oauth.remote_app('twitter',
2222
# unless absolute urls are used to make requests, this will be added
2323
# before all URLs. This is also true for request_token_url and others.
24-
base_url='http://api.twitter.com/1/',
24+
base_url='https://api.twitter.com/1/',
2525
# where flask should look for new request tokens
26-
request_token_url='http://api.twitter.com/oauth/request_token',
26+
request_token_url='https://api.twitter.com/oauth/request_token',
2727
# where flask should exchange the token with the remote application
28-
access_token_url='http://api.twitter.com/oauth/access_token',
28+
access_token_url='https://api.twitter.com/oauth/access_token',
2929
# twitter knows two authorizatiom URLs. /authorize and /authenticate.
3030
# they mostly work the same, but for sign on /authenticate is
3131
# expected because this will give the user a slightly different
3232
# user interface on the twitter side.
33-
authorize_url='http://api.twitter.com/oauth/authenticate',
33+
authorize_url='https://api.twitter.com/oauth/authenticate',
3434
# the consumer keys from the twitter application registry.
3535
consumer_key='xBeXxg9lyElUgwZT6AZ0A',
3636
consumer_secret='aawnSpNTOVuDCjx7HMh6uSXetjNN8zWLpZwCEU4LBrk'

0 commit comments

Comments
 (0)