Jump to content

My Yahoo! API Code


The Letter E

Recommended Posts

I'm trying to retrieve the yahoo contacts for a given user and I've successfully gotten all the way to returning the oauth_token from yahoo, but it's making the final rest request that's bombing for me. I get the following response:

 

Please provide valid credentials. OAuth oauth_problem="signature_invalid", realm="yahooapis.com"

 

Here's the url I'm passing to my curl GET request:

$url = 'http://social.yahooapis.com/v1/user/'.$guid.'/contacts?'
              .'oauth_consumer_key='.$this->yid
              .'&oauth_nonce='.rand()
              .'&oauth_signature_method=HMAC-SHA1'
              .'&oauth_timestamp='.time()
              .'&oauth_token='.urlencode($params['oauth_token'])
              .'&oauth_version=1.0'
              .'&oauth_signature='.$this->ysecret;

 

I'm hoping someone out there will have had a problem with this before and know what pitfalls I should lookout for to fix this problem.

 

Thanks in advance,

 

E

Link to comment
https://forums.phpfreaks.com/topic/267530-my-yahoo-api-code/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.