From: Josh Roesslein Date: Tue, 25 Aug 2009 21:43:20 +0000 (-0500) Subject: Fixes to tutorial 1. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=abba38c04a62d1a23aaf140b51ea14db50b2fcc8;p=tweepy.git Fixes to tutorial 1. --- diff --git a/CHANGES b/CHANGES index 23c3f6b..9acb582 100644 --- a/CHANGES +++ b/CHANGES @@ -16,3 +16,4 @@ during upgrade will be listed here. + Fixes + User.following is now set to False instead of None when user is not followed. + + python 2.5 import syntax error fixed diff --git a/ROADMAP b/ROADMAP index d6aec90..456589d 100644 --- a/ROADMAP +++ b/ROADMAP @@ -13,3 +13,4 @@ Future... + rate limit governor + command line client example + retweet api [DONE BUT NEEDS TESTING] ++ async requests diff --git a/tutorial/t1.py b/tutorial/t1.py index a58dfd7..f392f1a 100644 --- a/tutorial/t1.py +++ b/tutorial/t1.py @@ -83,9 +83,9 @@ api_via_oath = tweepy.API(oauth_auth) To make creating API instances a bit more easy you way use the static method API.new() to create new instances. Here is an example: """ -new_basic_api = tweepy.API.new(auth='basic', username, password) -new_oauth_api = tweepy.API.new(auth='oauth', consumer_key, consumer_secret) -new_oauth.api.auth_handler # here's how to access the auth handler to do the oauth flow +new_basic_api = tweepy.API.new('basic', username, password) +new_oauth_api = tweepy.API.new('oauth', consumer_key, consumer_secret) +new_oauth_api.auth_handler # here's how to access the auth handler to do the oauth flow """ The End