News Feed
Sections




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

Till Klampaeckel's Blog:
Yahoo oauth_problem=consumer_key_rejected
May 23, 2011 @ 09:29:41

During some of his work with the Yahoo! Search Boss API, Till Klampaeckel came across an issue with the OAuth connection causing an error of "oauth_problem=consumer_key_rejected" with his Zend Framework-based application.

The above process doesn't even take five minutes, but then I spent eight hours figuring out what oauth_problem=consumer_key_rejected means. Spent a couple hours googling, reading bug reports and even posted to the Yahoo! group associated with Search Boss. To cut to the chase: When you create a new project, it's not sufficient to just activate "Yahoo! Search Boss" (and provide billing details and so on).

His real issue was because of how Yahoo! apparently creates (or when they create) the OAuth connection information for you. He gives a two line example of how the Zend Framework can grab a OAuth token with Zend_Oauth. He goes on to talk about the OAuth implementation in PHP and how it's "pretty sucky" and that there's not much documentation around to help. He got things working, though, and included the sample code he used to make the connection - pulling the info from a an oauth.ini file, pushing the authentication parameters to the remote side, grabbing the headers and making the HTTP request with the OAuth information in place.

0 comments voice your opinion now!
oauth tutorial yahoo consumer key


blog comments powered by Disqus

Similar Posts

Leonid Mamchenkov's Blog: Disable and enable CakePHP plugins on the fly

NetTuts.com: Integrating Zendesk With WordPress

DevShed: Fundamentals of Recursion in PHP (Part 1)

Evan Coury: Getting started with the ZF2 skeleton and ZfcUser

IBM developerWorks: Cloud computing with PHP, Part 1: Using Amazon S3 with the Zend Framework


Community Events





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


interview series laravel community composer library symfony language voicesoftheelephpant list tool podcast introduction version opinion conference artisanfiles security release framework

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