CALDAV分享日历卷曲

时间:2017-04-25 21:52:32

标签: curl owncloud caldav

对于项目,我需要在owncloud dav服务器上创建共享。我可以通过dav创建和共享文件夹,我可以创建日历但不共享它们。我尝试发帖请求: https://example.dav/remote.php/dav/calendar/[PRINCIPAL]/[CALENDAR]/

发布数据:

<o:share xmlns:c="urn:ietf:params:xml:ns:caldav" xmlns:d="DAV:" xmlns:a="http://apple.com/ns/ical/" xmlns:o="http://owncloud.org/ns" xmlns:n="http://nextcloud.com/ns" xmlns:cs="http://calendarserver.org/ns/">
    <o:set>
        <d:href>
            principal:principals/groups/[GROUP]
        </d:href>
        <o:summary>
            [GROUP] geteilt von [PRINCIPAL]
        </o:summary>
    </o:set>
</o:share>

我从服务器得到的答案是:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">
    <s:exception>
        Sabre\DAV\Exception\NotImplemented
    </s:exception>
    <s:message>
        There was no handler found for this "POST" method
    </s:message>
</d:error>
这让我很奇怪,因为webfrontend,例如完全使这个调用共享一个日历对象。

0 个答案:

没有答案