September 9, 2010

Twitter API Has Changed

Since the August 31, 2010 one of the most famous micro blogging social networks or Twitter for everyone, changed their API (aka Application Programming Interface), so all those applications that used to communicate to Twitter's servers via Basic Authentication, they will become useless (like "Status Widget in Moto Blur from Dext).

I realize of this event because I was programming a small client for OSX, so when I tried the old curl -u user:pass twitter.com/account/verify_credentials.xml to check the authenticity of the user/pass provided twitter told me: "Basic authentication is not supported". The documentation of this change says:

Transitioning from Basic Authentication to OAuth isn't simple for everyone. You're going from an approach where you send a login and password with every REST API request you make to one in which you're first having to acquire user authorization, and then sending credentials that both identify your application and the user in every request.
Well, if we want to keep using their services we must complain with their new rules. In further post I will  explain how to use the new method using Objective C

No comments:

Post a Comment