[Answer]-Having trouble accessing Twitter API 1.1 instead of API 1.0 in Python (Django)

1👍

Is this what you mean?

>>> import twitter
>>> client = twitter.Api()
>>> latest_posts = client.GetUserTimeline("yourusername")
>>> print [s.text for s in latest_posts]

This is a sample using authentication:

>>> client = twitter.Api(username='yourusername', password='yourpassword')
>>> update = client.PostUpdate('The Twitter API is easy')

I will also give you a link for Python Library Documentation:

http://static.unto.net/python-twitter/0.5/doc/twitter.html

Leave a comment