]> jfr.im git - z_archive/twitter.git/commitdiff
Add oauth_callback=oob to force PIN to appear
authorMike Verdone <redacted>
Thu, 24 Jul 2014 23:05:49 +0000 (01:05 +0200)
committerMike Verdone <redacted>
Thu, 24 Jul 2014 23:05:49 +0000 (01:05 +0200)
twitter/oauth_dance.py

index c016865e6ccaa876f442c6a7a14c26388af86bb2..1d005a86a7f257189905147e4a4241fed88ba99c 100644 (file)
@@ -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