Welcome Developers!

in

Welcome!

in

myspace returns 401 error when trying to get user data

Last post 01-10-2011 3:26 PM by Joel. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 01-03-2011 9:27 PM

    myspace returns 401 error when trying to get user data

     hi this sree,

               I am working with an external application on MySpaceID. I am trying to access user data through OAuth 1.0. I am following these steps

    1.Sending request for request Token, in response I got

    2.Redirecting user to  authorization url

    3.Getting access Token and OAuth verifier.

    4.Sending request to get profile data. Here I am getting 401 from the MySpace

     my request url is like this

       http://api.myspace.com/v1/users/" +userId+ "/profile.json?oauth_consumer_key="+CONSUMER_KEY+"&oauth_nonce="+nonce+"&oauth_signature="+signature+"&oauth_signature_method=HMAC-SHA1&oauth_timestamp="+timestamp+"&oauth_version=1.0";

    I am generating oauth_signature using consumer_secret and request_secret. I thought my signature may be wrong.

    But when I am trying with MySpaceID API tool generated url I am getting the profile data.

    Please let me Know what I am doing wrong. Please its very important .

     

  • 01-10-2011 3:25 PM In reply to

    Re: myspace returns 401 error when trying to get user data

     The user must permit the application to access this data explicitly or there will be an auth failure.

     

    thanks,

    Joel

  • 01-10-2011 3:26 PM In reply to

    Re: myspace returns 401 error when trying to get user data

     See the "extended permissions" located here:

    http://wiki.developer.myspace.com/index.php?title=Extended_Permissions_for_Offsite_Apps

     Use the ViewFullProfileInfo permission.

     

    thanks,

    Joel

Page 1 of 1 (3 items)