MySpace Developer Platform

A Place For Developers

Welcome Developers!

in

Welcome!

in

Friends extended information

Last post 04-09-2008 7:39 AM by Widgetlabs. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 04-09-2008 1:34 AM

    Friends extended information

     Hi all,

    how can i get the a friend's city and other extended information (age ....), using RESTFUL api or opensocial api

     

    thanks in advanced 

  • 04-09-2008 4:34 AM In reply to

    Re: Friends extended information

    Hi, have you checked out our reference section?

     

    Rhonda

     

    Follow us on Twitter:
    http://www.twitter.com/MySpaceDevTeam
  • 04-09-2008 4:45 AM In reply to

    Re: Friends extended information

     hey,

    thx for your reply. 

    yes i did, but there are some points i can't understand.

    http://api.msappspace.com/opensocial/v1/VIEWER/profile.xml works fine with me

    also http://api.msappspace.com/opensocial/v1/VIEWER/friends.xml but this doesn't give all the information i need.

    now i am trying http://api.msappspace.com/opensocial/v1/VIEWER/friends/profile.xml

    but it is giving me an error (friend ids must be positive ...) i realy don't know how to pass the friend ids to this url.

     your help is highly appreciated.

    Saed 

     

  • 04-09-2008 5:34 AM In reply to

    Re: Friends extended information

    Saed:
    how can i get the a friend's city and other extended information (age ....), using RESTFUL api or opensocial api
     

    i don't think you can especially if they don't have the app installed

    Eddie 

  • 04-09-2008 5:38 AM In reply to

    Re: Friends extended information

    hey eddie,

    actually they do have the application.

    also http://api.msappspace.com/opensocial/v1/VIEWER/friends/profile.xml supposed to do it but i cant pass the friend id to it :(

    Regards

    Saed 

  • 04-09-2008 6:37 AM In reply to

    Re: Friends extended information

     see if my reply at the end here helps

    http://developer.myspace.com/Community/forums/t/1461.aspx

    Eddie 

  • 04-09-2008 6:47 AM In reply to

    Re: Friends extended information

    Yeah - that's a problem. To Eddie - he's using the AS3 library, which accesses the REST API through an OpenSocial implementation - there is no OpenSocial function which takes an arbitrary Id to collect information (only the constants VIEWER and OWER), so there is no function in the AS3 library, either.

    About this: http://api.msappspace.com/opensocial/v1/VIEWER/friends/profile.xml

    Where did you find that endpoint? I've never seen the ability to collect "profile" through friends of a user. The closest endpoint I found like that is this:

    http://api.msappspace.com/opensocial/v1/{userId}/friendslist/{friendId}.xml

    But that just returns the same Basic information set as any friends' request (the exception being that you can get a specific friend by Id, instead of having to page through returns until you find the friend you want).

    What Eddie means when he says they must have the App installed is that you can then use their Id in place of VIEWER; but as I said, that functionality isn't available in the AS3 Library, as far as I'm aware.

  • 04-09-2008 7:39 AM In reply to

    Re: Friends extended information

    Hi,

    many thanks to Jeremy and Eddie.

    actually "http://api.msappspace.com/opensocial/v1/{userId}/friendslist/{friendId}.xml"  is giving me "Endpoint not found."

    about "http://api.msappspace.com/opensocial/v1/VIEWER/friends/profile.xml":

    since i can't find any Reference  for  "http://api.msappspace.com/opensocial/v1"  endpoints i tryed to

    test all the combinations i can think of :P

    but the strange thing is that "http://api.msappspace.com/opensocial/v1/VIEWER/friends/profile.xml"  didn't give "Endpoint not found."

    it gave me an error statig that i have to provide friend id!!!! 

    can you guys provide me with a reference to  http://api.msappspace.com/opensocial/v1"  endpoints.

     thanks, you have been very helpfull.

    Regards

    Saed 

     

Page 1 of 1 (8 items)