MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Strange 'friends' REST response

Last post 05-09-2008 9:34 AM by Sebastian. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-09-2008 9:27 AM

    Strange 'friends' REST response

    Lately, some of my requests to get friends (without a filter) has returned a response that assumed a filter was set. Specifically, I will see a response of "topFriends" when doing a request for 'all' friends:

    /v1/users/00000000/friends.json?page=2&page_size=300&oauth_nonce=00000000000000000000000&oauth_signature_method=HMAC-SHA1&oauth_token=&oauth_timestamp=1210350161&oauth_consumer_key=http%3A%2F%2Fwww.myspace.com%2F99999999999&oauth_version=1.0&oauth_signature=aaaaaaaaaaaaaaaaaaaaa {"count":44,"topFriends":"http:\/\/api.myspace.com\/v1\/users\/999999999\/friends?list=top","user":{"image":"http:\/\/aaa","largeImage":"http:\/\/aaa","name":"aaa","uri":"http:\/\/api.myspace.com\/v1\/users\/11111111","userId":111111111,"userType":"RegularUser","webUri":"http:\/\/www.myspace.com\/aaaaaaa"}}
     

    Filed under:
  • 05-09-2008 9:34 AM In reply to

    Re: Strange 'friends' REST response

    I just verified with the REST api tool on this site that the response for an "empty" page of friends has changed from an "empty" dataset to a "topFriends" dataset..

    Myspace...explain that to me.. How in the heazy is that supposed to make any sense?

    Let me say it another way to see if it makes any sense:

    If you request a page of friends of a user and that page is empty you will get a "topFriends" response....

    nope, still doesnt make sense to me. 

Page 1 of 1 (2 items)