Updated API junk

Updated Timeline Access (textile)
ryanmcgrath 2010-10-25 19:32:52 -07:00
parent 25fba94a64
commit f88818e64e

@ -2,14 +2,14 @@
h2. getPublicTimeline() 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.
<pre> <pre>
<code> <code>
import twython from twython import Twython
# Getting the public timeline requires no authentication, huzzah # Getting the public timeline requires no authentication, huzzah
twitter = twython.core.setup() twitter = Twython()
public_timeline = twitter.getPublicTimeline() public_timeline = twitter.getPublicTimeline()
for tweet in public_timeline: for tweet in public_timeline:
@ -29,10 +29,10 @@ Parameters:
<pre> <pre>
<code> <code>
import twython from twython import Twython
# Authenticate using Basic (HTTP) Authentication # 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") friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
for tweet in friends_timeline: for tweet in friends_timeline:
@ -77,9 +77,9 @@ Parameters:
<pre> <pre>
<code> <code>
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") mentions = twitter.getUserMentions(count="150")
print mentions print mentions