News Feed
Sections




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

PHPMaster.com:
Understanding OAuth - Tweeting from Scratch, Part 1
October 18, 2011 @ 10:27:41

PHPMaster.com has posted the first part of a new series they're presenting on working with OAuth in PHP, specifically using it to connect to the Twitter API. This first part of the series introduces you to the concepts of OAuth and some early code to work with user credentials.

A common complaint about OAuth is that it is very difficult to understand, but perhaps some of that confusion is because of an expectation that the abstraction provided by a third-party library will erase the need to understand the steps of an OAuth transaction - it does not. This two-part article demonstrates how OAuth v1 works by explaining the process of connecting a PHP application to the Twitter API using only a few built-in functions to post a message to a user's Twitter stream.

The process is broken up into two steps - first you'll need to set up the request credentials so your application can connect to the Twitter service (as created here) then use that connection to fetch the rest of the necessary credentials (three total: Consumer, Request and Access Credentials). Cut and pasteable code is provided.

0 comments voice your opinion now!
tutorial oauth twitter api series


blog comments powered by Disqus

Similar Posts

PHPMac.com: Building and Installing Apache 2.2.2 and PHP 5.1.3 (or 5.1.4) on Mac OS X 10.4.6

Till Klampaeckel's Blog: So you'd like to migrate from MySQL to CouchDB? - Part I

Kevin van Zonneveld's Blog: Kevin van Zonneveld

Daniel Cousineau's Blog: Zend Framework Module Init Script (Controller Plugin)

Daniel Cousineau's Blog: Displaying N-Deep Trees (Remember Your Algorithms Course?)


Community Events





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


interview install laravel api podcast deployment release tips bugfix package series introduction framework opinion voicesoftheelephpant library list language community symfony

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