Migrated from timeline-access v3

ryanmcgrath 2010-09-13 02:21:54 -07:00
parent 2642d6903c
commit f53d1f678d

@ -6,10 +6,10 @@ Returns the public timeline. This is easily one of the simplest methods for gett
<pre>
<code>
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:
<pre>
<code>
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:
<pre>
<code>
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:
<pre>
<code>
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