0

keep getting a oauth_problem="parameter_absent:

cant figure how to fix this problem. can anyone help figure this problem please.
it says: Please provide valid credentials. OAuth oauth_problem="parameter_absent: oauth_signature", realm="yahooapis.com"

this is sample of the code i am using:
$apiurl = "http://social.yahooapis.com/v1/user/".$guid."/connections;start=0;count=max";
$params = "oauth_consumer_key=".$consumer_key;
$params .= "&oauth_nonce=".$nonce;
$params .= "&oauth_signature_method=HMAC-SHA1";
$params .= "&oauth_timestamp=".$timestamp;
$params .= "&oauth_token=".$request_token;
$params .= "&oauth_version=1.0";
$urlencoded_apiurl = urlencode($apiurl);
$urlencoded_params = urlencode($params);
$basestring = "GET&".$urlencoded_apiurl."&".$urlencoded_params;
$signature = base64_encode(hash_hmac("sha1", $basestring, $secret."&".$request_secret, true));
$url = "http://social.yahooapis.com/v1/user/".$guid."/connections;start=0;count=max";
$headers = array(
"Authorization: OAuth
realm=\"yahooapis.com\",
oauth_consumer_key=\"".$consumer_key."\",
oauth_nonce=\"".$nonce."\",
oauth_signature_method=\"HMAC-SHA1\",
oauth_timestamp=\"".$timestamp."\",
oauth_token=\"".$request_token."\",
oauth_version=\"1.0\",
oauth_signature=\"".$signature."\""
);

by
1 Reply
  • Hi Blake,

    Can you please send the complete request and response headers?
    We cannot tell easily what goes wrong by just checking the code.

    If you have access to tool such as wget (http://www.gnu.org/software/wget/)
    or curl (http://curl.haxx.se/), you can construct the get request
    manually with commands similar to the following

    wget -S -d "http://social.yahooapis.com/v1/user/USERGUID12345678/connections;start=0;count=max" --header=' Authorization: OAuth realm="yahooapis.com" oauth_version="1.0" oauth_nonce="8c76a87ffd3e4f48b53ed4b669b0b35f" oauth_timestamp="1268432350" oauth_consumer_key="dj0yJmk9TUJETmxhUG9WbDlPJmQ9WVdrOWR6Um9kRkl3TXpRbWNHbzlNVGszTVRBM05USXhOQS0
    tJnM9Y29uc3VtZXJzZWNyZXQmeD02MQ--" oauth_signature_method="PLAINTEXT" oauth_signature="821ce9362da7d3d441265e77469a1339c42097612526" oauth_callback="oob"'

    Then you copy them here.

    Thanks,
    Yu Wang
    Yahoo! Membership Team
    0

Recent Posts

in OAuth General Discussion YDN SDKs