From d0883538fe22d4aa7cba82cf6a09d40a9d2a7f0f Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Sat, 8 Aug 2009 15:00:08 -0500 Subject: [PATCH] Tutorial edits. --- tutorial/t1.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tutorial/t1.py b/tutorial/t1.py index d526829..93aa167 100644 --- a/tutorial/t1.py +++ b/tutorial/t1.py @@ -11,7 +11,7 @@ Authentication is handled by AuthHandler instances. You must either create a BasicAuthHandler or OAuthHandler which we will pass into our api instance to let twitter know who we are. -First let's try creating an basic auth handler. +First let's try creating a basic auth handler. """ username = raw_input('Twitter username: ') password = getpass('Twitter password: ') @@ -45,7 +45,7 @@ we must wait for that and grab the verifier number from the request. For this example we will ask the user for the PIN. """ verifier = raw_input('PIN: ').strip() -oauth_auth.get_access_token() +oauth_auth.get_access_token(verifier) """ Okay we are all set then with OAuth. If you want to store the access @@ -57,7 +57,7 @@ print 'Access token: %s' % access_token_to_store """ And to re-create the OAuthHandler with that access token later on... """ -oauth_auth = tweepy.OAuthHandler('consumer_key', 'consumer_secret') +oauth_auth = tweepy.OAuthHandler(consumer_key, consumer_secret) oauth_auth.access_token = access_token_from_storage """ -- 2.25.1