thanks a lot mez

On Apr 29, 12:11 pm, mez <[EMAIL PROTECTED]> wrote:
> i forgot to mention that a_calendar.id.text
> actually returns something like the following:
>
> http://www.google.com/calendar/feeds/default/owncalendars/full/[EMAIL 
> PROTECTED]
>
> you need to splice this string you get back so that when you insert
> the event, the command looks like this:
>
> new_event = calendar_service.InsertEvent(event, '/calendar/
> feeds/'+'[EMAIL PROTECTED]'+'/private/full')
>
> On Apr 29, 12:05 pm, mez <[EMAIL PROTECTED]> wrote:
>
>
>
> > hellolax,
>
> > typically when you create an event and want to add to the primary
> > calendar
> > you would create the event object and perform the following command in
> > python.
>
> > new_event = calendar_service.InsertEvent(event, '/calendar/feeds/
> > default/private/full')
>
> > to add to another calendar, you must first grab the id of the
> > calendar. and then do the following:
>
> > new_event = calendar_service.InsertEvent(event, '/calendar/feeds/'+ID
> > +'/private/full')
>
> > NOTE: just in case you don't know how to get the id of a calendar you
> > can do the following:
>
> > cal_feed = calendar_service.GetOwnCalendarsFeed()
> > for i, a_calendar in enumerate(cal_feed.entry):
> >      print  a_calendar.id.text
>
> > Hope this helps, Mez
>
> > On Apr 29, 11:52 am,lax<[EMAIL PROTECTED]> wrote:
>
> > > How can we create events in different calendars (other than the
> > > primary calendar)?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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