Hi,

I developed an iGoogle Gadget that uses opensocial-0.8, which works
great on iGoogle.  I also am able to embed this gadget onto my Gmail.
However, when I tried to put it on my Google Calendar (using
http://www.google.com/calendar/render?gadgeturl=MY_GADGET_URL), I
receive a 401 Malformed security token error when it tries to request
opensocial data.

I have a <Require feature="opensocial-0.8"/> inside my <ModulePrefs>.

Here is my JS for creating and sending the opensocial data request:
var req = opensocial.newDataRequest();
req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.OWNER),
'owner');
req.add(req.newFetchPersonRequest(opensocial.IdSpec.PersonId.VIEWER),
'viewer');
req.send(gadgets.util.makeClosure(this, this.setPeople));

And the error response:
Malformed security token e=<token
omitted>&amp;c=calendarcom.google.gadgets.auth.AuthTokenException:
Failure for container calendar

I am not using any of the Google Data APIs - only opensocial.

I was wondering: why does opensocial work in iGoogle and Gmail, but
not Calendar, even though I am using the same function calls?

Let me know if I am unclear about anything.  Thanks!

--

You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" 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/google-calendar-help-dataapi?hl=en.


Reply via email to