|
21 | 21 | twitter = oauth.remote_app('twitter',
|
22 | 22 | # unless absolute urls are used to make requests, this will be added
|
23 | 23 | # 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/', |
25 | 25 | # 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', |
27 | 27 | # 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', |
29 | 29 | # twitter knows two authorizatiom URLs. /authorize and /authenticate.
|
30 | 30 | # they mostly work the same, but for sign on /authenticate is
|
31 | 31 | # expected because this will give the user a slightly different
|
32 | 32 | # user interface on the twitter side.
|
33 |
| - authorize_url='http://api.twitter.com/oauth/authenticate', |
| 33 | + authorize_url='https://api.twitter.com/oauth/authenticate', |
34 | 34 | # the consumer keys from the twitter application registry.
|
35 | 35 | consumer_key='xBeXxg9lyElUgwZT6AZ0A',
|
36 | 36 | consumer_secret='aawnSpNTOVuDCjx7HMh6uSXetjNN8zWLpZwCEU4LBrk'
|
|
0 commit comments