News Feed
Jobs Feed
Sections




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

Zend Developer Zone:
Getting an OAuth Access Token from the Command Line
June 09, 2011 @ 11:04:29

Tim Lytle has written up a new tutorial for the Zend Developer Zone talking about OAuth and making one of the more difficult parts - getting an access token - a bit simpler using a command-line application.

OAuth is great - there's no need to save users' passwords, it's - in theory - a consistent way to interact with other services, and it's hopefully something that your users are familiar and comfortable using. But if you're not just interacting with your users' accounts - for example, your application uses a single account on a service to broadcast messages, or analyze data - getting or renewing the access token can be painful.

He illustrates the problem with an example connecting to Twitter and even points out a script that makes bridging this gap simpler. Unfortunately, it's not exactly what he needed, so he reworked the idea with a call to the Twitter API using a Zend_Oauth_Consumer and a custom callback. The script is then set up with some command line options for inputting the key and secret information. Also included is functionality letting you define a configuration file. You can see the final result here on github.

0 comments voice your opinion now!
oauth tutorial commandline zendframework token key secret


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Sending Confirmation Emails with Phalcon and Swift

David Goodwin's Blog: Using SOAP and XmlRpc with PHP5 (a newbies findings)

SitePoint.com: Be More Asssertive: Getting to Know PHPUnit's Assertions

Henry Hayes' Blog: Firebug Console.Log for PHP using Zend Framework

IBM developerWorks: Integrate your PHP application with Google Calendar


Community Events











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


release security hhvm symfony2 hack code composer component language install database framework podcast performance facebook threedevsandamaybe unittest application introduction package

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