Update tutorials.
authorJosh Roesslein <jroesslein@gmail.com>
Sat, 8 Aug 2009 19:52:26 +0000 (14:52 -0500)
committerJosh Roesslein <jroesslein@gmail.com>
Sat, 8 Aug 2009 19:52:26 +0000 (14:52 -0500)
tutorial/t0.py
tutorial/t1.py

index 3735d1cfe0b067d9ade3fd5bca78988c9afe04ed..363ac11e332b4505125218756c27ecf100af742b 100644 (file)
@@ -8,7 +8,14 @@ If you get lost on your journey to becoming a Tweepy guru, feel
 free to post questions to tweepy@googlegroups.com
 
 Each tutorial file is named tX.py where X is the tutorial number.
-Work your way from 1 and up.
+Work your way from 1 and up. These files should be runnable by python.
+Be sure the tweepy library is on your python path by either installing
+it on your system OR setting the PYTHONPATH environment variable.
+You can then run the tutorial like such:
+
+  python t1.py
+
 
 Author: Joshua Roesslein
 """
+
index c161d7678e3c27162cd5f89addbf8950250f8681..d526829755b46a6cbc3fa2b99c7d8d4586897a33 100644 (file)
@@ -24,10 +24,10 @@ You must supply the handler both your consumer key and secret which
 twitter supplies you with at http://twitter.com/oauth_clients
 You may also supply a callback URL as an optional parameter.
 """
-consumer_key = ''
-consumer_secret = ''
+consumer_key = 'ZbzSsdQj7t68VYlqIFvdcA'
+consumer_secret = '4yDWgrBiRs2WIx3bfvF9UWCRmtQ2YKpKJKBahtZcU'
 oauth_auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
-oauth_auth_callback = tweepy.OAuthHandler(consumer_key, consumer_secret
+oauth_auth_callback = tweepy.OAuthHandler(consumer_key, consumer_secret,
                                             'http://test.com/my/callback/url')
 
 """
@@ -52,6 +52,7 @@ Okay we are all set then with OAuth. If you want to store the access
 token for later use, here's how...
 """
 access_token_to_store = oauth_auth.access_token
+print 'Access token: %s' % access_token_to_store
 
 """
 And to re-create the OAuthHandler with that access token later on...