On Wed, Oct 29, 2008 at 11:54 AM, Pete <[EMAIL PROTECTED]> wrote:
>
> I'm using the following URL to get to the US holiday calendar, which
> returns event descriptions just fine,
> http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic.
> However, I can't get dates for the events the same way I get dates and
> times for events on my private calendar. Using the API's
>
> CalendarEventEntry entry = resultFeed.getEntries().get(i);
> List whens = entry.getTimes();
>
> will return a populated list for my private calendar. However, the
> parameter whens is always empty for the holiday calendar. I can't find
> any other API in CalendarEventEntry, or it's parent BaseEventEntry
> that might be more appropriate for this. Can anyone shed some light on
> what I'm doing wrong? Thanks.
>
> -Pete

Hi Pete,
The 'basic' project strictly adheres to the Atom format, without any
of the Google Data extensions.

On top of that, since everything in the US Holidays calendar is
recurring, you won't see any gd:when elements in the feed normally.

To fix this, you need to do two things:

1. Change the projection from 'basic' to 'full' to get the Google Data
extensions.
2. Add 'singleevents=true' as a query parameter to expand recurring events.

This means the URL you want to use should be:

    
http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/full?singleevents=true

-- 
Trevor Johns

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