Hi piotr,

You need to send your event queries to the calendar's event feed.  You
can get this URL from the alternate link (rather than the self link)
in the entry you received from the allcalendars feed.  Here's an
example:

<link rel="alternate" type="application/atom+xml" href="http://
www.google.com/calendar/feeds/<calendar_id>/private/full"/>

Cheers,
Lane

On Sep 12, 8:12 am, piotr <[EMAIL PROTECTED]> wrote:
> Hi there,
>
>       I'm trying to access a calendar to which access I'd been given.
> I'm using Java API for google calendars, and tried to do this in
> following steps
>
> 0.Fetchlist of all available calendars and search for a title that
> i'm interested in
>
> 1.Fetchurl ID of a calendar that I'm interested in by calling
> (CalendarEntry).getSelfLink().getHref();
>
> got:http://www.google.com/calendar/feeds/default/allcalendars/full/_SOMEI...
>
> 2. Tried tofetchevent in a given time period
>
> URL feedURL =  new FeedUrl(fetchedIdURL);
> CalendarQuery myQuery = new CalendarQuery(feedURL);
> myQuery.setMinimumStartTime(DateTime.parseDateTime("2007-09-08T00:00:00"));
> myQuery.setMaximumStartTime(DateTime.parseDateTime("2007-09-12T23:59:59"));
> CalendarEventFeed resultFeed = myService.query(myQuery,
> CalendarEventFeed.class);
>
> resultFeed.getItemsPerPage() got -1 :(
>
> When I get a Calendar by
>
> CalendarFeed resultFeed = myService.getFeed(feedUrl,
> CalendarFeed.class);
>
> I'm having proper instance of this calendar, so most probably this url
> link is correct.
>
> Any ideas/suggesstions what am I doing wrong ? I'd kindly appreciate
> your help.


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