News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

SitePoint.com:
OAuth for PHP Twitter Apps, Part I
September 03, 2010 @ 10:53:45

On the SitePoint blogs today there's a new tutorial posted, the first part of a series, from Raj Deut about making the move away from the basic authorization for connecting to the Twitter API and towards their new OAuth method for Twitter Apps.

As of August 31, Twitter's HTTP Basic Authenticated API service has been disabled entirely. Now, any interface with the API will be required to use a token-based authentication method known an OAuth. [...] At first glance, the task of implementing OAuth can appear daunting, and OAuth's token exchange system can be confusing if you're unfamiliar with it. Fortunately, there are some rather clever individuals who've done the groundwork for us.

They show you how to register your application with Twitter and use the TwitterOAuth library to make a sample connection to their servers. They also show how to generate the tokens for the URL and the ones for accessing the site as a user. With tokens in hand, the script can then connect to the system and make a sample tweet (complete code included).

0 comments voice your opinion now!
oauth basic authentication tutorial twitteroauth library


blog comments powered by Disqus

Similar Posts

Joshua Thijssen: Dynamic form modification in Symfony2

IBM developerWorks: Use the YouTube API with PHP

Fabien Potencier's Blog: Create your own framework...on top of the Symfony2 Components (parts 3 & 4)

Zend Developer Zone: Using the Stack Exchange API with PHP (part 1)

QaFoo.com: Mocking with Phake


Community Events





Don't see your event here?
Let us know!


language introduction series threedevsandamaybe testing configure unittest code release developer interview community list opinion podcast install wordpress refactor laravel framework

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework