Migrated from timeline-access v3
parent
2642d6903c
commit
f53d1f678d
1 changed files with 8 additions and 8 deletions
|
|
@ -6,10 +6,10 @@ Returns the public timeline. This is easily one of the simplest methods for gett
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
import tango
|
import twython
|
||||||
|
|
||||||
# Getting the public timeline requires no authentication, huzzah
|
# Getting the public timeline requires no authentication, huzzah
|
||||||
twitter = tango.setup()
|
twitter = twython.setup()
|
||||||
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 tango
|
import twython
|
||||||
|
|
||||||
# Authenticate using Basic (HTTP) Authentication
|
# 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")
|
friends_timeline = twitter.getFriendsTimeline(count="150", page="3")
|
||||||
|
|
||||||
for tweet in friends_timeline:
|
for tweet in friends_timeline:
|
||||||
|
|
@ -55,10 +55,10 @@ Parameters:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<code>
|
||||||
import tango
|
import twython
|
||||||
|
|
||||||
# We won't authenticate for this, but sometimes it's necessary
|
# We won't authenticate for this, but sometimes it's necessary
|
||||||
twitter = tango.setup()
|
twitter = twython.setup()
|
||||||
user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath")
|
user_timeline = twitter.getUserTimeline(screen_name="ryanmcgrath")
|
||||||
|
|
||||||
print user_timeline
|
print user_timeline
|
||||||
|
|
@ -77,9 +77,9 @@ Parameters:
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<code>
|
<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")
|
mentions = twitter.getUserMentions(count="150")
|
||||||
|
|
||||||
print mentions
|
print mentions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue