There is a max-results parameter available for calendar queries. By
default it is 25. If you want 100 events you need to either pass in a
larger value, or better, page through the results that are returned.

Ray

On Wed, Mar 11, 2009 at 3:00 AM, Desperado <[email protected]> wrote:
>
> I have 100 events in my calendar, but I can only get 25 events when I
> fetch events by the following code. Is there the count limitation when
> retrieve the events.
>
> Any one help me out!
>
>        $service = new Zend_Gdata_Calendar($client);
>        $query = $service->newEventQuery();
>        if($is_default == '0') {
>                $query->setUser('default');
>        } else {
>                $query->setUser($cal_id);
>        }
>        $query->setVisibility('private');
>        $query->setProjection('full');
>        //Retrieve the event list from the calendar server
>        $eventFeed = $service->getCalendarEventFeed($query);
> >
>

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