How to integrate with google Calendar?
Posted
by Sumithran
on Stack Overflow
See other posts from Stack Overflow
or by Sumithran
Published on 2010-06-10T06:14:44Z
Indexed on
2010/06/10
7:02 UTC
Read the original article
Hit count: 169
java
Hi all. I am new to java. I need to integrate with google calendar form my java allpication.But it gives the Exception message : Error connecting with login URI.I use the following code for connect with google.
CalendarService myService = new CalendarService("CalendarService");
myService.setUserCredentials("[email protected]", "Kdfdfderekra");
URL feedUrl = new URL("http://www.google.com/calendar/feeds/default/allcalendars/full");
CalendarFeed resultFeed = myService.getFeed(feedUrl, CalendarFeed.class);
System.out.println("Your calendars:");
for (int i = 0; i < resultFeed.getEntries().size(); i++) {
CalendarEntry entry = resultFeed.getEntries().get(i);
System.out.println("\t" + entry.getTitle().getPlainText());
}
© Stack Overflow or respective owner