Updated API junk
Updated Timeline Access (textile)
parent
25fba94a64
commit
f88818e64e
1 changed files with 7 additions and 7 deletions
|
|
@ -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.
|
||||
|
||||
<pre>
|
||||
<code>
|
||||
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:
|
|||
|
||||
<pre>
|
||||
<code>
|
||||
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:
|
|||
|
||||
<pre>
|
||||
<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")
|
||||
|
||||
print mentions
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue