Ray,
Thanks this helps a bit!
But I'm really sorry, I don't know how to "open" a specific EventEntry
either to update ist or just to get its contents. I have a loop like
tis:
URL calendarFeed = new URL("http://www.google.com/calendar/feeds/
[email protected]/private/full");
/* show all tasks inside this calendar */
CalendarEventFeed myFeed = myService.getFeed(calendarFeed,
CalendarEventFeed.class);
List<CalendarEventEntry> entriesEvent = myFeed.getEntries();
if (entriesEvent.size() > 0) {
for(int j=0; j<entriesEvent.size(); j++) {
CalendarEventEntry entryEvent = entriesEvent.get(j);
System.out.println("\t" + entryEvent.getTitle().getPlainText() + "
-> " + entryEvent.getSelfLink().toString());
// here is the point where I want to open the current
entryEvent... but how?
}
System.out.println("\nTotal Event Entries: "+entriesEvent.size());
}
On 28 Jul., 20:41, Ray Baxter <[email protected]> wrote:
> Each Calendar Event has a "self" link. You can make a normal authenticated
> http request to retrieve it.
> Presumably you want to do this because you are trying to get the etag. There
> is no need to retrieve a single event. You can read the etag from the
> attributes of the entry in an event feed.
>
> Ray
>
>
>
> On Tue, Jul 28, 2009 at 11:16 AM, Johann <[email protected]> wrote:
>
> > Ray,
>
> > Okay, this is a very useful hint, but how may I open one specific
> > CalendarEventEntry?
>
> > Best Regards,
> > Johann
>
> > On 28 Jul., 18:27, Ray Baxter <[email protected]> wrote:
> > > The ID of an event uniquely identifies an event. If the etag of the event
> > > has not changed, the event has not changed.
> > > Ray
>
> > > On Tue, Jul 28, 2009 at 8:15 AM, Johann <[email protected]> wrote:
>
> > > > Dear Google Calendar Data API groups members,
>
> > > > I asked this question before the other way around, after experimenting
> > > > a bit my question is more general:
>
> > > > I'm writing a java servlet which syncs between Google Calendar and a
> > > > custom Oracle Calendar Database.
>
> > > > Syncing from Google to Oracle is easy, it works great.
>
> > > > My problem is to sync the other way around: From Oracle to Google
> > > > Calendar.
>
> > > > Can someone please tell me what field to store in my Oracle Database
> > > > to uniquely identify/find a specific CalendarEvent? And how may I open/
> > > > find this Event to compare the two versions (Google vs. Oracle)?
>
> > > > Any comments welcome!
>
> > > > Thanks in advance,
> > > > Johann
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---