From abba38c04a62d1a23aaf140b51ea14db50b2fcc8 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Tue, 25 Aug 2009 16:43:20 -0500 Subject: [PATCH] Fixes to tutorial 1. --- CHANGES | 1 + ROADMAP | 1 + tutorial/t1.py | 6 +++--- 3 files changed, 5 insertions(+), 3 deletions(-) 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 -- 2.25.1