I would like to retrieve all the dates for the US Holidays by using
the [EMAIL PROTECTED] How can I do this? I am
having no luck with the following code..
public Feed secondTest2(CalendarService myService) throws
IOException, ServiceException {
URL feedUrl = new URL("http://www.google.com/calendar/feeds/
[EMAIL PROTECTED]/[EMAIL PROTECTED]");
new
CalendarFeed().declareExtensions(myService.getExtensionProfile());
myService.setUserCredentials("[EMAIL PROTECTED]", "pwd");
// Send the request and receive the response:
CalendarFeed resultFeed = myService.getFeed(feedUrl,
CalendarFeed.class);
CalendarQuery myQuery = new CalendarQuery(feedUrl);
myQuery.setMinimumStartTime(DateTime.parseDateTime("2008-01-01T00:00:00"));
myQuery.setMaximumStartTime(DateTime.parseDateTime("2008-12-31T23:59:59"));
// myQuery.setFullTextQuery("Flag Day");
// Send the request and receive the response:
Feed myResultsFeed = myService.query(myQuery, Feed.class);
return myResultsFeed;
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---