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