Hi Erik,
Thanks for following up. I made some progress since I posted the question.
[1] YahooSession::createAuthorizationUrl() actually exists in the current version of Yahoo.inc, and I've verified it works. Thanks.
[2] The api doc, http://developer.yahoo.com/social/php_api/annotated.html, seems to be a bit out-dated since this method is not listed, among other things. In fact, the doc says it was "Generated on Thu Nov 20 12:23:17 2008".
[3] The second example I quoted is also out-dated (and possibly wrong). Apparently, the "private" class YahooAuthentication has been changed to YahooAuthorization, which is still marked as "@private" in the source.
Thanks,
~Harry
[1] I'm glad you were able to find the YahooSession::createAuthorizationUrl() function and that it's working for you.
[2] I agree that that section of the documentation is outdated. Where did you find the link to it? If the link is still in our docs, I'll file a request to remove it.
[3] Thanks for digging into Yahoo.inc. Based on
the version I'm using, I can replicate a few errors:
- as you noted, "YahooAuthentication" should be "YahooAuthorization" in the RatingUtil::createAuthorizationUrl and RatingUtil::createRequestToken functions
- the call to "YahooAuthentication::createRequestToken" should be "YahooAuthorization::getRequestToken" in RatingUtil::createRequestToken
- if you are tracking all errors and warnings, php will throw an error about a missing third param in the call to YahooAuthorization::getRequestToken in RatingUtil::createRequestToken. This can be remedied by passing null as the third param, ie:
$token = YahooAuthorization::getRequestToken($this->_consumer->key,
$this->_consumer->secret, null);
I'll review all the sample code from the tutorial in [3] and work to resolve any errors/omissions. Thanks again for bringing all this to our attention. I'm sorry for the confusion.
Please post back if you find anything else, or have any further questions.
Best regards,
Erik