On Wed, Sep 10, 2008 at 4:39 AM, Michael <[EMAIL PROTECTED]> wrote: > > Hi, > > Suppose I make two queries on one same calendar uri. The result would > be two a priori independent events feeds. Is there a good way of > combining these into one single events feed? > > For instance, is it possible to inject new events (stemming from a new > query to the same calendar uri) into an already existing events feed? > (directly through the API, of course). > > A concrete example: suppose I want to show calendar events on a page, > but only 10 at a time, with "next" and "previous" links pointing to > getNextLink() and getPreviousLink() etc. What is a good practice > solution in this case? > > Best regards, > Michael
Hi Michael, Unfortunately, there's no good way to have our servers do this for you. You can use max-results to modify the page size for results returned from a single query, but there's no way to combine multiple queries together on the server. Injecting events into an existing query isn't hard, since our protocol is inherently stateless. Any new entries that get created will immediately appear the next time a page is retrieved from the server. (The downside here is that it will cause the position of events to change too, which might be confusing for users.) If you're trying to do something complicated, the best solution might be to just implement your own server-side logic that manages merging the feeds together. -- 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 -~----------~----~----~----~------~----~------~--~---
