From: Mike Verdone Date: Mon, 24 Feb 2014 21:03:31 +0000 (+0100) Subject: Merge pull request #206 from polm/patch-1 X-Git-Tag: twitter-1.14.0~3 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/3f6ca83dfc697b71974d2fa3b10b4e68c4d4c621?hp=1d59e1e48902f046a4d5aba0b6f1902a572c9cf3 Merge pull request #206 from polm/patch-1 oauth dance should use https. HTTP URL generated by OAuth dance just gives a blank page, but changing it to HTTPS fixes it. --- diff --git a/twitter/oauth_dance.py b/twitter/oauth_dance.py index 17dbae6..d3f0ea8 100644 --- a/twitter/oauth_dance.py +++ b/twitter/oauth_dance.py @@ -1,4 +1,3 @@ - from __future__ import print_function import webbrowser @@ -38,7 +37,7 @@ In the web browser window that opens please choose to Allow access. Copy the PIN number that appears on the next page and paste or type it here: """) - oauth_url = ('http://api.twitter.com/oauth/authorize?oauth_token=' + + oauth_url = ('https://api.twitter.com/oauth/authorize?oauth_token=' + oauth_token) print("Opening: %s\n" % oauth_url)