This code looks good to me. Make sure that you're including
<Requires feature="opensocial-0.8" /> in your XML file.
~Arne
On Sep 9, 5:59 am, [EMAIL PROTECTED] wrote:
> Hello,
>
> I am developing application for orkut.
> Currently i am testing it in sandbox.orkut.com.
>
> I am trying to access owners and viewers data (specifically id using
> getId()).
>
> The code was working perfectly, but suddenly it is giving "badRequest"
> error.
>
> I have tried to check the response with following functions:
>
> hadError() function returns false.
> getErrorCode() function returnds badRequest.
>
> Please check the below code:
> ===========================================
> function requestMe()
> {
> var req = opensocial.newDataRequest();
> req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER),"owner");
> req.send(handleRequestMe);
>
> };
>
> function handleRequestMe(data) {
>
> var owner= data.get("owner");
>
> alert("data errors \nhaderror=" +data.hadError() +
> "\n getErrorMessage=" +data.getErrorMessage());
>
> alert("owner errors \n haderror=" + owner.hadError() +
> "\n getErrorMessage=" + owner.getErrorMessage() +
> "\n getData=" + owner.getData() +
> "\n getErrorCode="+owner.getErrorCode());};
>
> requestMe();
> =====================================
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"OpenSocial Application Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---