Results 1 to 8 of 8

Thread: ical post item then retreive

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default ical post item then retreive

    I've succesfully placed an ical object into Zimbra using php, and now I am working on some code that can retrieve it back into my third party app.

    If the user drags and drops the appointment, our third party app needs to know about it.

    When I put the ojbect in there, I am setting a unique uid for it.

    Using the REST url, I should be able to retrieve it based on that?

    http://server/service/home/username/~/?fmt=sync&id=$uid

    right? Or what is the correct URL to get it?

    TIA.

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default

    I'm not sure that you want the sync formatter here rather than the ics formatter, but you'd know better than I.

    Anyways, you are trying to look up an appointment by its iCal UID, and that is not supported at present. When the appointment was created in Zimbra, the server returned you a numeric item ID -- that is the ID you must use as the id parameter to the REST interface.

    If you'd like to see the REST interface be able to fetch appointments and tasks by their iCal UIDs, please open an enhancement request in bugzilla.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    And so I assume this numeric ID can also be used in the SOAP interface as well.

    Thanks.

  4. #4
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    if I am posting this via curl/rest, is there a return item id?

  5. #5
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    just to clarify, I cannot search for it?

    <cond attr="uid" op="??" value="myIcalUID" />



    503 <SearchCalendarResourcesRequest
    504 [attrs="a1,a2,a3"] [sortBy="{sortBy}"] [sortAscending="{sortAscending}"] >
    505
    506 <searchFilter>
    507 <conds [not="1|0"] [or="1|0"] >
    508 [<cond> or <conds>]+
    509 </conds> (exactly one instance of <conds>)
    510
    511 -- or --
    512
    513 <cond [not="1|0"] attr="{attr}" op="{op}" value="{value}" /> (exactly one instance of <cond>)
    514 </searchFilter>
    515
    516 </SearchCalendarResourcesRequest>

  6. #6
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    I'm using a REST url to post the ICAL data, it is only returning 1, not an item id from zimbra.

    Any ideas?

    The documentation does not state anything about what can be expected in a return call from a post really.

    SourceForge.net Repository - [zimbra] View of /trunk/ZimbraServer/docs/rest.txt

    or

    User Migration - ZimbraWiki

  7. #7
    xingjing Guest

    Default

    Quote Originally Posted by dkarp View Post
    I'm not sure that you want the sync formatter here rather than the ics formatter, but you'd know better than I.

    Anyways, you are trying to look up an appointment by its iCal UID, and that is not supported at present. When the appointment was created in Zimbra, the server returned you a numeric item ID -- that is the ID you must use as the id parameter to the REST interface.

    If you'd like to see the REST interface be able to fetch appointments and tasks by their iCal UIDs, please open an enhancement request in bugzilla.
    I used " curl -u Username:Password --data-binary @/my/calendar/data.ics http://server/service/home/username/calendar?fmt=ics" to post the ical file to zimbra. Data goes into zimbra correctly. But there is no return value. I was also want to know where to catch or find the UID from zimbra.

    Thanks,

Similar Threads

  1. Hangs on "Loading" screen
    By gbr in forum General Questions
    Replies: 16
    Last Post: 06-19-2008, 02:01 PM
  2. .53 Will Not "Launch" in FF 2.0.0.6
    By jhoelz in forum Installation Help
    Replies: 4
    Last Post: 08-04-2007, 10:01 PM
  3. [SOLVED] Zimbra not syncing properly with Address Book and iCal
    By Colin Day in forum CalDAV / CardDAV / iSync
    Replies: 4
    Last Post: 07-13-2007, 09:52 AM
  4. Replies: 3
    Last Post: 03-18-2007, 04:48 PM
  5. using curl to post ical calendars
    By rdavison in forum Migration
    Replies: 4
    Last Post: 01-25-2007, 01:37 PM

Posting Permissions

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