Right....I thought I had it cracked because I could query the second
calander but I'm not able to insert events into it?! Are their
permissions or extra authorisation needed?
URL feedURL2 = new URL("http://www.google.com/calendar/feeds/" +
username);
new CalendarFeed().declareExtensions(myService.getExtensionProfile());
CalendarFeed resultFeed = myService.getFeed(feedURL2,
CalendarFeed.class);
for(int i=0; i<resultFeed.getEntries().size();i++) {
if(resultFeed.getEntries().get(i).getTitle().getPlainText().equals("Task
Grouping")) {
int idIndex =
resultFeed.getEntries().get(i).getId().lastIndexOf('/');
groupURL = new
URL("http://www.google.com/calendar/feeds" +
resultFeed.getEntries().get(i).getId().substring(idIndex) +
"/private/full");
System.out.println(groupURL);
i = resultFeed.getEntries().size();
}
} //ALL THIS SEEMS TO WORK!!
.......
CalendarEventEntry insertedEntry = myService.insert(this.groupURL,
myEntry);
Any ideas welcome please!
Jake
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---