MySpace Open Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

problem: oauth_problem="signature_invalid"

Last post 02-05-2009 5:35 AM by rondata. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 02-03-2009 7:32 AM

    problem: oauth_problem="signature_invalid"

     I try to get the user data from external application. I do this: http://www.christophercrooker.com/MySpaceID_OAuth_External_Application_Authorization_PHP.html and can get the basic info data.

    Now I try get all user's data, for this I change the url:

     $user='http://api.myspace.com/v1/user';  --->     $user='http://api.myspace.com/v2/people/'.$vals[1]['value'].'/@self?format=xml';

    where  .$vals[1]['value']. is the user_id.   So when I try, this returns:

    Warning: file_get_contents(http://...@self?format=xml&oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F449272505&oauth_nonce=a66685228f9bf9ec5c6fd39e3359367a&oauth_signature=NKyVVRVGmDt8d3N16pvbpIboilI%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233675010&oauth_version=1.0) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 401 oauth_problem="signature_invalid" in C:\wamp\www\referralville\www\callback_myspace.php on line 108

     Somebody has a response? How I get the true signature?

    (I copy&paste the same code, only change that line)

    Regards, and sorry for my poor english. Juan

     

    PD: this is a request=>
    Request: http://api.myspace.com/v2/people/438038946/@self?format=xml&oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F449272505&oauth_nonce=a66685228f9bf9ec5c6fd39e3359367a&oauth_signature=NKyVVRVGmDt8d3N16pvbpIboilI%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1233675010&oauth_version=1.0

  • 02-03-2009 1:35 PM In reply to

    Re: problem: oauth_problem="signature_invalid"

     I'll check in.

    Rhonda

     

  • 02-05-2009 4:17 AM In reply to

    Re: problem: oauth_problem="signature_invalid"

    I find my problem.

    I was using the v2 REST Resources from MySpace (call type 'v2/users/@me/@self'), but when i change to v1 (call type 'v1/users/{userid}/profile'), I solve this problem.

    Might the v1 signature algorithm diferent  than v2 ??

    Now I have other problem, I need invite the friends of one user to visit my website, but i don´t have this mail, I try to use "open Inviter" (I use this for invite facebook contacts), but it don´t working for MySpace. Somebody know how do this?

    Regards, Juan

     

  • 02-05-2009 5:35 AM In reply to

    Re: problem: oauth_problem="signature_invalid"

    Do you mean outside apps? Just going to someone and messaging them is more of  profiles issue and I think you're trying to do something we don't support at this time.

    Regarding the v1/v2 issue, I'll take a closer look when I get in the office.

Page 1 of 1 (4 items)