Results 1 to 5 of 5

Thread: [SOLVED] problems with REST API: Get Calendar

  1. #1
    confiq is offline New Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    4

    Default [SOLVED] problems with REST API: Get Calendar

    Hi Guys,
    I'm building some mini-portal where users will be able to login and see company information including they calendar.
    So for calendar part, I decided to use Zimbra_REST_API_Reference:Get_Calendar but I have little problems. Docs says:
    http://localhost:7070/home/john.doe/calendar?{params}
    * fmt. Optional. The response format. Defaults to ics format.
    * start. Optional. The start time range (milliseconds | yyyy/dd/mm | mm/dd/yyy | relative dates ).
    * end. Optional. The end time range (milliseconds | yyyy/dd/mm | mm/dd/yyy | relative dates ).
    * query. Optional. A query string.
    So, if I'll go to: It should bring me events in JSON format for period of 3 days (from april 5 until april 7) but it brings me whole calendar in json format.
    If I change fmt to RSS it brings empty XML and I'm sure that i have few event for that period.
    Code:
    <?xml version="1.0"?> <rss version="2.0"><channel><title>Zimbra calendar</title><link>http://www.zimbra.com</link><description>Zimbra item calendar in RSS format.</description><generator>Zimbra RSS Feed Servlet</generator></channel></rss>
    Am I missing something?
    Can anyone confirm?
    Last edited by confiq; 03-03-2011 at 01:42 AM.

  2. #2
    BDY35 is offline Member
    Join Date
    Feb 2010
    Location
    Rennes, France
    Posts
    14
    Rep Power
    5

    Default

    Hi.

    All parameters do not work with all formats !
    begin and end dates are fine with ICS format. Don't know about other formats.

  3. #3
    confiq is offline New Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    4

    Default

    well, IMHO it would be good to mention that in documentation !
    I'm looking to import data for only one day, what is best way to do that?
    I'm preferring XML/JSON format!

    EDIT:
    I also changed fmt to ics and i didn't get any events in that period. ex:

    https://webmail.company.com/zimbra/home/USER/calendar?fmt=ics&start=20110504&end=20110704
    And I'm sure i have few events in that period....
    Last edited by confiq; 03-08-2011 at 02:24 AM.

  4. #4
    BDY35 is offline Member
    Join Date
    Feb 2010
    Location
    Rennes, France
    Posts
    14
    Rep Power
    5

    Default

    I am using ics format with an url like this :
    The end day is the next day, not the same day as the start day, when looking for a given day events.

    The only way to find the correct url is to try.. Sigh.
    Last edited by BDY35; 03-08-2011 at 08:11 AM.

  5. #5
    confiq is offline New Member
    Join Date
    Mar 2011
    Posts
    4
    Rep Power
    4

    Default

    actualy,
    i figured out few things:
    1) date format is not 20090123 as given in example
    2) format yyyy/dd/mm didn't work for me, however m/d/Y do work
    3) json format ALWAYS returns whole calendar instead of start/end period. If you use rss/ics it works fine.

    none of these are mention in documentation....
    Hope it helps somebody....

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Cannot Import ics Calendar via REST
    By amartin in forum Migration
    Replies: 2
    Last Post: 07-23-2014, 12:37 AM
  2. Subscribing User to Calendar through SOAP Api
    By RobTucker in forum Developers
    Replies: 1
    Last Post: 01-15-2013, 09:40 AM
  3. Replies: 6
    Last Post: 01-19-2008, 02:41 AM
  4. Deleting calendar entries via REST
    By shahins in forum Developers
    Replies: 2
    Last Post: 12-21-2007, 07:48 AM
  5. Remote Calendar Problems
    By cryptogram in forum Administrators
    Replies: 4
    Last Post: 01-29-2007, 09:37 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
  •