Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-2010, 06:32 AM
Intermediate Member
 
Posts: 20
Default Retrieving large calendar info

Hi,
I've read this API from here:
ZCS 6.0:Zimbra REST API Reference:Get Calendar - Zimbra :: Wiki

So if i pass in a query using this:
http://localhost:7070/home/john.doe/myholidays?fmt=json

Its return me all the appointment inside the myholidays calendar in JSON format. Which is what I want.

But one thing I've consider is the size of the result. If after 1 year, I have around 100 appointment (which is less than actual), the result will be few KB. How about few years later? The size is growing.

Because the result will be used to convert to php native array using the JSON parser. I believe the PHP server do have memory limit per script execution.

I've checked out there is 1 parameter for the API called "start". Which allow you to specify +/- from the current time of the appointment should shows up.
But that only support atom, ics, rss, and ifb formatters.
But I want it in JSON format which is more easy for me to access.

Anyone?
Reply With Quote
  #2 (permalink)  
Old 04-03-2012, 07:58 AM
Intermediate Member
 
Posts: 22
Default

Quote:
Originally Posted by xenophobia View Post
Hi,
I've read this API from here:
ZCS 6.0:Zimbra REST API Reference:Get Calendar - Zimbra :: Wiki

So if i pass in a query using this:
http://localhost:7070/home/john.doe/myholidays?fmt=json

Its return me all the appointment inside the myholidays calendar in JSON format. Which is what I want.

But one thing I've consider is the size of the result. If after 1 year, I have around 100 appointment (which is less than actual), the result will be few KB. How about few years later? The size is growing.

Because the result will be used to convert to php native array using the JSON parser. I believe the PHP server do have memory limit per script execution.

I've checked out there is 1 parameter for the API called "start". Which allow you to specify +/- from the current time of the appointment should shows up.
But that only support atom, ics, rss, and ifb formatters.
But I want it in JSON format which is more easy for me to access.

Anyone?
You may do that with start and the number of days you want to reach into the past (example is for all appointments on the last 365 days):

"http://localhost:7070/home/john.doe/myholidays?fmt=json&start=-365d&end=+1d"
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.