BTW, in my previous code snippet, OWN_CALENDARS_LOCATION = "http://
www.google.com/calendar/feeds/default/owncalendars/full"
-Lane
On Sep 11, 7:50 am, "Lane LiaBraaten (Google)"
<[EMAIL PROTECTED]> wrote:
> Hi amit,
>
> Sorry I misread your question. To create a calendar you need to at
> least include a title like this:
>
> CalendarEntry calendar = new CalendarEntry();
> calendar.setTitle(new PlainTextConstruct("minimal calendar"));
> CalendarEntry returnedCalendar = service.insert(new URL(
> OWN_CALENDARS_LOCATION), calendar);
>
> However, you probably want to add a timezone as well so you know when
> your events occur.
>
> Hope that helps,
> Lane
>
> On Sep 10, 8:56 pm, "amit singh" <[EMAIL PROTECTED]> wrote:
>
> > thanks Lane :-)
>
> > the problem is i just want to create calendar not the event. while doing
> > so if the title tag i remove from the body , the calendar is not created. i
> > want to know which elements must be present to successfully create the
> > calendar(not event)
>
> > On 9/10/07, Lane LiaBraaten (Google) <[EMAIL PROTECTED]> wrote:
>
> > > Hi amit,
>
> > > You can actually create and event with no elements like this:
>
> > > CalendarEventEntry event = new CalendarEventEntry();
> > > service.insert(new URL("http://www.google.com/calendar/feeds/
> > > default/private.full"), event);
>
> > > The resulting event will occur at the time of creation and have no
> > > duration.
>
> > > Can you post more information about the event you tried to create and
> > > the error you got?
>
> > > Thanks,
> > > Lane
>
> > > On Sep 10, 7:18 am, amit <[EMAIL PROTECTED]> wrote:
> > > > hi
> > > > what is the must element to create a calendar.'
> > > > i tried but was not able to create without a title tag.
> > > > only title tag in body makes successful creation of calendar with
> > > > calendar id populated as the calendar title.
> > > > is title tag the must present condition for calendar creation, plz
> > > > help me resolve dis prob asap
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---