Update Examples and LICENSE
Some examples were out of date (any trends example) Renamed the core_examples dir. to examples
This commit is contained in:
parent
bb019d3a57
commit
4ac6436901
14 changed files with 44 additions and 67 deletions
10
examples/get_user_timeline.py
Normal file
10
examples/get_user_timeline.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from twython import Twython, TwythonError
|
||||
|
||||
# Requires Authentication as of Twitter API v1.1
|
||||
twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)
|
||||
try:
|
||||
user_timeline = twitter.getUserTimeline(screen_name='ryanmcgrath')
|
||||
except TwythonError as e:
|
||||
print e
|
||||
|
||||
print user_timeline
|
||||
Loading…
Add table
Add a link
Reference in a new issue