Results 1 to 2 of 2

Thread: Retrieving large calendar info

Hybrid View

  1. #1
    Join Date
    Sep 2008
    Posts
    20
    Rep Power
    7

    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?

  2. #2
    Join Date
    Mar 2011
    Posts
    22
    Rep Power
    4

    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"

Similar Threads

  1. Replies: 35
    Last Post: 07-17-2009, 03:52 PM
  2. Replies: 10
    Last Post: 10-22-2008, 10:24 AM
  3. Error after installation
    By robsontuxlinux in forum Installation
    Replies: 13
    Last Post: 09-11-2008, 09:48 PM
  4. The mailbox and mta dies in FC4 GA version
    By meikka in forum Installation
    Replies: 72
    Last Post: 03-16-2006, 04:30 PM
  5. Zimbra on Debian?
    By omry_y in forum Installation
    Replies: 25
    Last Post: 11-04-2005, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •