From 4c3ba11b9d7145022fe848f64531adc0b618c9e8 Mon Sep 17 00:00:00 2001 From: ryanmcgrath Date: Mon, 13 Sep 2010 02:22:01 -0700 Subject: [PATCH] Migrated from timeline-access v4 --- Timeline-Access.textile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Timeline-Access.textile b/Timeline-Access.textile index d1dba76..ca99f1b 100644 --- a/Timeline-Access.textile +++ b/Timeline-Access.textile @@ -9,7 +9,7 @@ Returns the public timeline. This is easily one of the simplest methods for gett import twython # Getting the public timeline requires no authentication, huzzah -twitter = twython.setup() +twitter = twython.core.setup() public_timeline = twitter.getPublicTimeline() for tweet in public_timeline: @@ -32,7 +32,7 @@ Parameters: import twython # Authenticate using Basic (HTTP) Authentication -twitter = twython.setup(authtype="Basic", username="example", password="example") +twitter = twython.core.setup(username="example", password="example") friends_timeline = twitter.getFriendsTimeline(count="150", page="3") for tweet in friends_timeline: @@ -58,7 +58,7 @@ Parameters: import twython # We won't authenticate for this, but sometimes it's necessary -twitter = twython.setup() +twitter = twython.core.setup() user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath") print user_timeline @@ -79,7 +79,7 @@ Parameters: import twython -twitter = twython.setup(authtype="Basic", username="example", password="example") +twitter = twython.core.setup(username="example", password="example") mentions = twitter.getUserMentions(count="150") print mentions