Welcome Developers!

in

Welcome!

in

REST API for Activities returning Unauthorized

Last post 08-22-2009 2:36 PM by Tim Nicholson. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 03-30-2009 6:13 PM

    • Scott
    • Not Ranked
    • Joined on 02-10-2009
    • Posts 4

    REST API for Activities returning Unauthorized

    I am trying to get Activities through the REST api:

    Example:

    http://api.myspace.com/v1/users/63709550/activities.atom?oauth_consumer_key=MyKey&oauth_nonce=10bfbde0-7176-4836-85d0-3fe805c4ab06&oauth_signature=Signature&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1238461215&oauth_token=TOKEN&oauth_version=1.0

     All other calls to the REST api seem to work fine, but the Activities returns 401 Unauthorized.

     Is this not supported currently through the REST apis?

    Thanks,
    Scott

    Filed under:
  • 03-30-2009 6:33 PM In reply to

    • Scott
    • Not Ranked
    • Joined on 02-10-2009
    • Posts 4

    Re: REST API for Activities returning Unauthorized

    The Oauth Testing tool returns the following:

    <error xmlns="api-v1.myspace.com"><statuscode>401</statuscode><statusdescription>Application does not have the required permissions to make this call.</statusdescription></error>

     So how do I enable permissions for my application to make this call?

    Thanks,

    Scott

  • 04-20-2009 8:43 PM In reply to

    • &
    • Top 25 Contributor
    • Joined on 03-21-2008
    • Posts 151

    Re: REST API for Activities returning Unauthorized

     Scott,

    The current REST endpoint for activities is only available for some restricted partners. But we are working on a new security context with MySpaceID. With the MySpaceID app you can call the activities rest endpoint.

     

    Marco

  • 08-22-2009 2:36 PM In reply to

    Re: REST API for Activities returning Unauthorized

    I've been trying to use the OpenSocial PHP API's to get the MySpace activity stream for days now with no luck. MySpace sends back an http status of 200 for OK, but returns no data whatsoever. The OpenSocial PHP API's give a non-sensical error message of "No user id specified", but I have definitely tracked things down to the point where I know MySpace is simply not returning ANYTHING other than the status code of 200 with no error message about permissions or not being a whitelisted partner of whatever. The OpenSocial PHP API's use MySpace REST calls.

    So is this permitted for any developer or just "restricted partners"? If restricted, how do I get whitelisted? If not restricted, are others using the standard MySpace provided PHP API's having success? I'm trying to determine if this is a bug in the OpenSocial PHP API's or not.

    Filed under: , ,
Page 1 of 1 (4 items)