| 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.
|  | 
09-17-2007, 07:09 AM
| | Special Member | |
Posts: 151
| | 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. | 
09-21-2007, 09:46 AM
| | Zimbra Employee | |
Posts: 1,434
| | 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. | 
09-21-2007, 09:49 AM
| | Special Member | |
Posts: 151
| | And so I assume this numeric ID can also be used in the SOAP interface as well.
Thanks. | 
09-21-2007, 09:55 AM
| | Special Member | |
Posts: 151
| | if I am posting this via curl/rest, is there a return item id? | 
09-21-2007, 10:05 AM
| | Special Member | |
Posts: 151
| | 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> | 
09-28-2007, 10:58 AM
| | Zimbra Employee | |
Posts: 515
| | FYI, in case anyone is concerned with getting this implemented in ZCS: Bug 20700 - allow REST query for appointments by iCalendar UID | 
09-28-2007, 11:58 AM
| | | Quote:
Originally Posted by dkarp 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, | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |