Phone numbers are not exposed through orkut, which explains why my
sample above doesn't work. If you want to get other person fields
(e.g. gender, current location, etc.), you can use the above sample as
a template.

- Jason

On Sep 4, 11:16 am, Jason <[EMAIL PROTECTED]> wrote:
> Normally, you would use a snippet like the one below to access a
> particular person field (phone numbers in this case) of the
> application owner but it doesn't seem to be working for me right now.
> The developer guide indicates that PHONE_NUMBERS is a supported field,
> so this may be a bug. In the meantime, you can use the general code
> below to retrieve any other fields:
>
> function request() {
>   var params = {};
>   params[opensocial.DataRequest.PeopleRequestFields.PROFILE_DETAILS] =
> [opensocial.Person.Field.PHONE_NUMBERS];
>
>   var req = opensocial.newDataRequest();
>
> req.add(req.newFetchPersonRequest(opensocial.DataRequest.PersonId.OWNER,
> params), "req");
>   req.send(response);
>
> };
>
> function response(data) {
>   var owner = data.get('req').getData();
>
>   console.log(owner.getDisplayName());
>   console.log(owner.getField(opensocial.Person.Field.PHONE_NUMBERS));
>
> };
>
> I will follow up on why the phone numbers aren't being fetched and
> reply when I have more info.
>
> - Jason
>
> On Sep 3, 5:39 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > Hi all,
>
> > I am developing the application using the Open Social API I need some
> > help regarding to that I want to show the response in my gadget. The
> > response is send by the servlet. Can you please tell me how can I show
> > that response into that gadget. Thanks in advance
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut Developer Forum" group.
To post to this group, send email to opensocial-orkut@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to