pmeerw's blog

Sep 2010

Thu, 02 Sep 2010

Twitter and oAuth

Since September 1, Twitter is using oAuth instead of basic authentication. After updating python-twitter and fixing the Twiter API instantiation in by adding an access token key and an access token secret

import twitter
api = twitter.Api(username=user, password=passwd,
access_token_key='xxx', access_token_secret='yyy')
my blog displays the latest tweets again, hurray!

You need to register an app and request an authentication token which can be used to obtain an access token. ( in python-twitter does the work for you).

posted at: 17:43 | path: /projects/blog | permanent link

Made with PyBlosxom