Skip to content

Commit

Permalink
Updated twitter example to use https. This fixes #26
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Oct 6, 2012
1 parent f655275 commit d7f0f6c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
twitter = oauth.remote_app('twitter',
# unless absolute urls are used to make requests, this will be added
# before all URLs. This is also true for request_token_url and others.
base_url='http://api.twitter.com/1/',
base_url='https://api.twitter.com/1/',
# where flask should look for new request tokens
request_token_url='http://api.twitter.com/oauth/request_token',
request_token_url='https://api.twitter.com/oauth/request_token',
# where flask should exchange the token with the remote application
access_token_url='http://api.twitter.com/oauth/access_token',
access_token_url='https://api.twitter.com/oauth/access_token',
# twitter knows two authorizatiom URLs. /authorize and /authenticate.
# they mostly work the same, but for sign on /authenticate is
# expected because this will give the user a slightly different
# user interface on the twitter side.
authorize_url='http://api.twitter.com/oauth/authenticate',
authorize_url='https://api.twitter.com/oauth/authenticate',
# the consumer keys from the twitter application registry.
consumer_key='xBeXxg9lyElUgwZT6AZ0A',
consumer_secret='aawnSpNTOVuDCjx7HMh6uSXetjNN8zWLpZwCEU4LBrk'
Expand Down

0 comments on commit d7f0f6c

Please sign in to comment.