Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.