From: Josh Roesslein Date: Sat, 8 Aug 2009 20:00:08 +0000 (-0500) Subject: Tutorial edits. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d0883538fe22d4aa7cba82cf6a09d40a9d2a7f0f;p=tweepy.git Tutorial edits. --- 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 """