On 13 Ago, 00:00, Ray Baxter <[email protected]> wrote:
> Hi,
> I think there is some miscommunication. As I understand, you want to
> retrieve events in the near future for a single calendar and cannot.
> Normally we have people coming to this forum because they are trying to do
> the opposite, retrieve events from multiple calendars at once, and cannot.

Yes indeed.

The fact was that I was trying not to get events from the "main"
calendar (I don't know which is the canonical name) but first to
enumerate all the available calendars (as in the examples), then from
a CalendarEntry (I'm working in Java) get the URL to a specific
calendar and fetch events from it.

My problem was that calendarEntry.getSelfLink().getHref() returns an
url that is not good for this purpose. Some cURL digging made me
discover that the working version should probably be:

url = new URL(calendarEntry.getLink("http://schemas.google.com/gCal/
2005#eventFeed", null).getHref());

This thing works -- or at least, executing a query over that URL does
not cause any exceptions.

If by any chance you know a more canonical method please let me know.

Thank you very much,
Pierluigi

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to