[OwlKun] Integrating OAuth with Twitter’s API in python

I believe everyone’s heard that  Twitter will be doing away with basic authentication come June ’10. They’re switching to OAuth. It’s a mechanism via which a consumer (C) and access the resources of a site (S), on behalf of a user (U), without a username or a password being provided to C by U.  ( C can be either an application or a website, U is a user registered on S .)

In our case, C is our application ( which here is OwlKun). U is you – your twitter account. S is Twitter.

Now, every python twitter API/library will eventually have to switch to OAuth, and many have already done so, but there is absolutely no comprehensive documentation on how to go about integrating your app with twitter, using any given language apart from the existing source code.

Lines 75-104 contain the OAuth specific material, others contain integration stuff so that you can actually run these commands from inside vim. :)

Here’s the link to OwlKun’s source :

http://owlkun.googlecode.com/files/owlkun.py

Etymology : OwlKun = Owl ( Stays awake at nights, it was night time when I wrote this ) + Kun = Friend ( Since I have no friends since it’s a nice and friendly application that’s well documented. )

Thanks,

Abhinav

Advertisements
This entry was posted in Python, Twitter, Uncategorized and tagged , , , . Bookmark the permalink.

One Response to [OwlKun] Integrating OAuth with Twitter’s API in python

  1. Hi to every one, for the reason that I am really eager of reading this
    webpage’s post to be updated daily. It contains good material.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s