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 02-21-2007, 07:04 AM
Special Member
 
Posts: 151
Default Calendar Object Update Via Soap? Or ICS Somehow?

I've created an ICS file, and successfully put it into zimbra using the following URL:

http://mail.server.com/zimbra/user/$username/calendar?fmt=ics

It returns back a 1 if successful.

How do I modify this calendar entry in the future? SOAP right?

The SOAP documentation is very confusing and a little light.

My first guess is that I need to search for it? Then I can modify it using SOAP? Or is there any easy way to update it by sending a new ICS file?

<Envelope xmlns=\"http://www.w3.org/2003/05/soap-envelope\">
<Body>
<SearchCalendarResourcesRequest [attrs=\"a1,a2,a3\"] [sortBy=\"{sortBy}\"] [sortAscending=\"{sortAscending}\"] >
<searchFilter>
<conds [not=\"1|0\"] [or=\"1|0\"] >
[<cond> or <conds>]+
</conds> (exactly one instance of <conds>)

-- or --

<cond [not=\"1|0\"] attr=\"{attr}\" op=\"{op}\" value=\"{value}\" /> (exactly one instance of <cond>)
</searchFilter>
</SearchCalendarResourcesRequest>
</Body>
</Envelope>
Reply With Quote
  #2 (permalink)  
Old 02-21-2007, 02:43 PM
Zimbra Employee
 
Posts: 1,434
Default Options

You can modify the calendar via:
  • the web client
  • SOAP
  • POST of a new .ics file
  • CalDAV (work-in-progress)
I think that POSTing a new .ics file should replace the existing data. If it doesn't, please file a bug report.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #3 (permalink)  
Old 02-21-2007, 07:35 PM
Special Member
 
Posts: 151
Default what makes the ICS unique?

Sorry, I'm a little new to ICS and SOAP. So as long as the UID from the ICS file is the same, it should just update the same event, and change the time/date/name/etc?

That makes updating a calender object easy enough, and what is the easiest way to remove it, if it needs to be deleted? SOAP? Or can I send a blank ICS file.

I appreciate your help!
Reply With Quote
  #4 (permalink)  
Old 02-22-2007, 12:17 AM
Zimbra Employee
 
Posts: 1,434
Default Deleting an appointment

Quote:
Originally Posted by phingers View Post
Sorry, I'm a little new to ICS and SOAP. So as long as the UID from the ICS file is the same, it should just update the same event, and change the time/date/name/etc?
I believe so.

Quote:
Originally Posted by phingers View Post
That makes updating a calender object easy enough, and what is the easiest way to remove it, if it needs to be deleted? SOAP? Or can I send a blank ICS file.
Try either using SOAP or POSTing an ICS file containing a CANCEL.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #5 (permalink)  
Old 02-24-2007, 09:30 PM
Special Member
 
Posts: 151
Default post a ics as admin user

Is there someway to post an ICS file then as the Zimbra admin user to anyone's calendar? Or does it have to be done via soap?
Reply With Quote
  #6 (permalink)  
Old 02-24-2007, 10:08 PM
Zimbra Employee
 
Posts: 1,434
Default Should work.

That should work, but you need to be sure to use the admin port and to use HTTPS if needed.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #7 (permalink)  
Old 02-25-2007, 09:39 AM
Special Member
 
Posts: 151
Default

Sorry just to clarify then.

http://mail.server.com/zimbra/user/$username/calendar?fmt=ics

should be

https://mail.server.com/zimbraAdmin/user/$username/calendar?fmt=ics

So I can send it in as the admin user, and it wont show on the admin's calendar, but it will show on whomever is listed as attendee's in the ICS?
Reply With Quote
  #8 (permalink)  
Old 02-25-2007, 09:55 AM
Zimbra Employee
 
Posts: 1,434
Default Give it a try!

Quote:
Originally Posted by phingers View Post
https://mail.server.com/zimbraAdmin/user/$username/calendar?fmt=ics
I think the URL should be more like
Code:
https://mail.server.com:<adminport>/zimbraAdmin/service/user/<username>/calendar?fmt=ics
But that's the general idea.

Quote:
Originally Posted by phingers View Post
So I can send it in as the admin user, and it wont show on the admin's calendar, but it will show on whomever is listed as attendee's in the ICS?
The target is defined by the $username and the trailing path after it. So yes, if you specify a regular user, the POST should work.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #9 (permalink)  
Old 02-25-2007, 02:48 PM
Special Member
 
Posts: 151
Default

https://mail.server.com:<adminport>/zimbraAdmin/service/user/<username>/calendar?fmt=ics

I've tried that and

https://mail.server.com:<adminport>/service/user/<username>/calendar?fmt=ics

Neither seem to work, where is the documentation on these URLs and what are available?
Reply With Quote
  #10 (permalink)  
Old 02-25-2007, 05:10 PM
Zimbra Employee
 
Posts: 1,434
Default What's the error code?

What error are you getting?

Documentation for the REST interface can be found in the source distribution and in the migration wiki.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
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.