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 09-17-2007, 07:09 AM
Special Member
 
Posts: 151
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.
Reply With Quote
  #2 (permalink)  
Old 09-21-2007, 09:46 AM
Zimbra Employee
 
Posts: 1,434
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!
Reply With Quote
  #3 (permalink)  
Old 09-21-2007, 09:49 AM
Special Member
 
Posts: 151
Default

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

Thanks.
Reply With Quote
  #4 (permalink)  
Old 09-21-2007, 09:55 AM
Special Member
 
Posts: 151
Default

if I am posting this via curl/rest, is there a return item id?
Reply With Quote
  #5 (permalink)  
Old 09-21-2007, 10:05 AM
Special Member
 
Posts: 151
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>
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 10:21 AM
Special Member
 
Posts: 151
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
Reply With Quote
  #7 (permalink)  
Old 09-28-2007, 10:58 AM
Zimbra Employee
 
Posts: 515
Default

FYI, in case anyone is concerned with getting this implemented in ZCS:
Bug 20700 - allow REST query for appointments by iCalendar UID
__________________
Search the Forums - Bugzilla - Wiki - Downloads
Reply With Quote
  #8 (permalink)  
Old 09-28-2007, 11:58 AM
Member
 
Posts: 11
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,
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.