Hi Pet, I had this problem, too, and found the following solution:
When using getEvents(), you have to use the cryptic calendar ID as email ID, like google.calendar.read.getEvents(callback, ["[email protected]"]); You'll find this ID in the calendar's settings. I wonder myself if there is any way to find out this ID in a sidebar gadget, though, if I only know the calendar's name. You can get all calendars currently selcted for viewing by getEvents(callback, "selected") (note that there are no array brackets around the string here!), and in the response you'll then find the IDs of all the viewed calendars, but there is no entry anywhere that tells me what the name of the respective calendar is. Or better, there are several entries where I thought I'd find this information, but they are all empty. Suppose the JSON given to the callback as parameter is named data, then you have data[xy].email where the calendar ID is, and there's data [xy].name, but that's empty, and according to documentation there should be data[xy].events[zz].calendar.name, but data[xy].events [zz].calendar is not defined at all. Moreover, there doesn't seem to be a way (yet?) to define which calendar to use as default when calling composeEvent – that would be a nice addition I'd really look forward to. Best regards, Christian On 17 Sep., 14:36, Pet <[email protected]> wrote: > On 28 Aug., 10:49, Pet <[email protected]> wrote: > > > Hi, > > > I'm trying to develop a gadget for thesidebarand all examples google > > offers for this type of gadget do operate on default user calendar. > > Does anyone know hot to load, call specific user calendar into gadget > > and operate on it? > > I wonder, if all developer of gadgets operates only on default > calendar? If not, could someone give an example how to use non-primary > calendar in gadget? > > Thanks, Pet > > > > > Regards, Pet --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
