From f88818e64e095fbf0b954af6e1e0a4eb0bed75ee Mon Sep 17 00:00:00 2001 From: ryanmcgrath Date: Mon, 25 Oct 2010 19:32:52 -0700 Subject: [PATCH] Updated API junk Updated Timeline Access (textile) --- Timeline-Access.textile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Timeline-Access.textile b/Timeline-Access.textile index ca99f1b..919364d 100644 --- a/Timeline-Access.textile +++ b/Timeline-Access.textile @@ -2,14 +2,14 @@ h2. getPublicTimeline() -Returns the public timeline. This is easily one of the simplest methods for getting data in all of Tango. +Returns the public timeline. This is easily one of the simplest methods for getting data in all of Twython.
 
-import twython
+from twython import Twython
 
 # Getting the public timeline requires no authentication, huzzah
-twitter = twython.core.setup()
+twitter = Twython()
 public_timeline = twitter.getPublicTimeline()
 
 for tweet in public_timeline:
@@ -29,10 +29,10 @@ Parameters:
 
 
 
-import twython
+from twython import Twython
 
 # Authenticate using Basic (HTTP) Authentication
-twitter = twython.core.setup(username="example", password="example")
+# twitter = authenticated_handler (see included Oauth Django application)
 friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
 
 for tweet in friends_timeline:
@@ -77,9 +77,9 @@ Parameters:
 
 
 
-import twython
+from twython import Twython
 
-twitter = twython.core.setup(username="example", password="example")
+# twitter = authenticated_handler (see included Oauth Django application)
 mentions = twitter.getUserMentions(count="150")
 
 print mentions