Hi, If you already know how to insert event to the primary calendar, then adding
event to secondary calendar requires just simply using the correct feed URI when submitting request. The feed URI identifies the target calendar to which the event entry will be sent to for creation. All feed URIs has the following format - http://www.google.com/calendar/feeds/[CALENDAR_ID]/private/full CALENDAR_ID is where you replace it with the actual calendar ID that you wish to access - this can "default" (your primary calendar) or other calendar ID that represents your secondary calendar ** The ID of a calendar can be looked up by going to your Google Calendar account - 1) click on the "Settings" on the top right 2) choose the "Calendars" tab 3) click on the calendar you wish to insert the event to 4) go down to the row where it says "Calendar Address", you will see the calendar ID You can reuse the sample code from the interactive developer guide for adding event and replace the feed URI to one to your secondary calendar - http://code.google.com/apis/calendar/developers_guide_js.html#Interactive_Samples I am not sure what is the authentication issue you are having, but try to clear the cookie on your browser and retry to see if that helps. Cheers, Austin On Tue, Aug 19, 2008 at 7:02 AM, lauDS <[EMAIL PROTECTED]> wrote: > > Hi, > First I hope you will understand my questions because I'm french and I > don't speak english very fluently... > Well, I'm tryng to create a mashup thanks to the Google Calendar API, > but I don't know how to manage to do some things: > First, I would like being able to add an event (only by programmation) > in another calendar that the default calendar. Could you give me an > example to change the code below for a calendar named "Calendrier2" ? > > My code: > var calendarService = new > google.gdata.calendar.CalendarService('GoogleInc-jsguide-1.0'); > var feedUri = 'http://www.google.com/calendar/feeds/default/private/ > full'; > var entry = new google.gdata.calendar.CalendarEventEntry(); > > Then, I have the same problem when I want to give the possibility to > the user to choose the calendar to show in the application... > > Finally, when I want to authentificate with my account, it doesn't > work anymore: it tells me that I opened to many sessions. I tryed to > cancel these sessions but I had a 502 Server Error... > > You will be very helpfull if you could give me some solutions or > explanations. > > Thanks > > Laura > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
