From: Mike Verdone Date: Thu, 24 Jul 2014 23:05:49 +0000 (+0200) Subject: Add oauth_callback=oob to force PIN to appear X-Git-Tag: twitter-1.15.0~9 X-Git-Url: https://jfr.im/git/z_archive/twitter.git/commitdiff_plain/c0c66ba0ebe25c1ddc446111dc29a1e6fc07b367?hp=d4f3123e5401d0d8f466b2306d953158e59ffe4b Add oauth_callback=oob to force PIN to appear --- diff --git a/twitter/oauth_dance.py b/twitter/oauth_dance.py index c016865..1d005a8 100644 --- a/twitter/oauth_dance.py +++ b/twitter/oauth_dance.py @@ -49,7 +49,7 @@ def oauth_dance(app_name, consumer_key, consumer_secret, token_filename=None): auth=OAuth('', '', consumer_key, consumer_secret), format='', api_version=None) oauth_token, oauth_token_secret = parse_oauth_tokens( - twitter.oauth.request_token()) + twitter.oauth.request_token(oauth_callback="oob")) print(""" 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