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