fullTextQuery(myService, "Tennis");
dateRangeQuery(myService, DateTime.parseDate("2007-01-05"), DateTime
.parseDate("2007-01-07"));
// Demonstrate creating a single-occurrence event.
CalendarEventEntry singleEvent = createSingleEvent(myService,
"Tennis with Mike", "Meet for a quick lesson.");
System.out.println("Successfully created event "
+ singleEvent.getTitle().getPlainText());
// Demonstrate creating a quick add event.
CalendarEventEntry quickAddEvent = createQuickAddEvent(myService,
"Tennis with John April 11 3pm-3:30pm");
System.out.println("Successfully created quick add event "
+ quickAddEvent.getTitle().getPlainText());
// Demonstrate creating a web content event.
CalendarEventEntry webContentEvent = createWebContentEvent(myService,
"World Cup", "image/gif",
"http://www.google.com/logos/worldcup06.gif",
"http://www.google.com/calendar/images/google-holiday.gif", "276",
"120");
System.out.println("Successfully created web content event "
+ webContentEvent.getTitle().getPlainText());
// Demonstrate creating a recurring event.
CalendarEventEntry recurringEvent = createRecurringEvent(myService,
"Tennis with Dan", "Weekly tennis lesson.");
System.out.println("Successfully created recurring event "
+ recurringEvent.getTitle().getPlainText());
// Demonstrate updating the event's text.
singleEvent = updateTitle(singleEvent, "Important meeting");
System.out.println("Event's new title is \""
+ singleEvent.getTitle().getPlainText() + "\".");