2009年9月28日 星期一

Google Calendar Api query constrain

在使用google calendar api 中, 其實有以個預設的查詢限制,

舉例來說,若想要查詢其中一本日曆的事件, 但一次查最多只有25筆
如 : http://www.google.com/calendar/feeds/default/private/full
解果只會傳回最新的25筆資料


但 若要查詢所有的資料的話,可以設定 max-results 的數量, 將他設定一個很大的值
如,可以將url 改為
http://www.google.com/calendar/feeds/default/private/full?max-results=200



見 google 常見問題 How do I retrieve more than 25 results in an event feed?

沒有留言: