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