Permalink
Browse files

Updated twitter example to use https. This fixes #26

  • Loading branch information...
1 parent f655275 commit d7f0f6cdb44d1d05a919c8dc027c705e8bfc56e3 @mitsuhiko committed Oct 6, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 example/tweet.py
View
@@ -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'

0 comments on commit d7f0f6c

Please sign in to comment.