If this is a new a entry you may use :
EventEntry inserted = myService.insert(URL, theEntry);

if you want to update you have to get the entry and then use the update
function like  this :
CalendarEventFeed theResultFeed = myServie.query(theQuery,
CalendarEventFeed.class);
// then select the one you want for example
Iterator iterFeed = theResultFeed.getEntries().iterator();
CalendarEventEntry theEntry = (CalendarEventEntry) iterFeed.next;
// and then modify what you want
// .../...
// and then
theEntry.update();

Hope this help
Regards



2009/10/16 Thamilselvi <[email protected]>

>
> Hi ..
>  how to update particular events in my application using google
> calendar api in java
>
> i tried to update using following code in java
>
>  GoogleService myService = new GoogleService("cl","exampleCo-
> exampleApp-1");
>  myService.setUserCredentials(userId,password);
>
>  URL postURL = new URL("http://www.google.com/calendar/feeds/
> [email protected]/private/full");
>
>  CalendarEventEntry myEvent = new CalendarEventEntry();
>  myEvent.setTitle(new PlainTextConstruct("New Tile "));
>  myEvent.setContent(new PlainTextConstruct(content));
>  Person author = new Person("Sample", null,[email protected]);
>  myEvent.getAuthors().add(author);
>  myEvent.addLocation(new Where("","","Sample, Chennai"))
>
> String recurData = "DTSTART;VALUE=DATE:20091001\r\n"
>        + "DTEND;VALUE=DATE:20091002\r\n"
>        + "RRULE:FREQ=WEEKLY;BYDAY=Tu;UNTIL=20100904\r\n";
>
> Recurrence recur = new Recurrence();
> recur.setValue(recurData);
> myEvent.setRecurrence(recur);
> CalendarEventEntry updateEntry = myService.update(postURL,myEvent);
> >
>


-- 
Florent Devin
Téléphonez moi gratuitement via le net :
Domicile : http://call.mylivio.com/fd0
Professionnel : http://call.mylivio.com/fd_pro

--~--~---------~--~----~------------~-------~--~----~
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