diff --git a/Timeline-Access.textile b/Timeline-Access.textile index 90bcf37..d1dba76 100644 --- a/Timeline-Access.textile +++ b/Timeline-Access.textile @@ -6,10 +6,10 @@ Returns the public timeline. This is easily one of the simplest methods for gett
-import tango
+import twython
# Getting the public timeline requires no authentication, huzzah
-twitter = tango.setup()
+twitter = twython.setup()
public_timeline = twitter.getPublicTimeline()
for tweet in public_timeline:
@@ -29,10 +29,10 @@ Parameters:
-import tango
+import twython
# Authenticate using Basic (HTTP) Authentication
-twitter = tango.setup(authtype="Basic", username="example", password="example")
+twitter = twython.setup(authtype="Basic", username="example", password="example")
friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
for tweet in friends_timeline:
@@ -55,10 +55,10 @@ Parameters:
-import tango
+import twython
# We won't authenticate for this, but sometimes it's necessary
-twitter = tango.setup()
+twitter = twython.setup()
user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath")
print user_timeline
@@ -77,9 +77,9 @@ Parameters:
-import tango
+import twython
-twitter = tango.setup(authtype="Basic", username="example", password="example")
+twitter = twython.setup(authtype="Basic", username="example", password="example")
mentions = twitter.getUserMentions(count="150")
print mentions