Calendar 如何在列出icloud日历时为每个请求获得相同的propfind响应?
我使用caldav request propfind从icloud中列出日历,我可以获得日历集合,但每次运行的输出都不同。 “日历启用”和“当前用户主体”属性丢失了一段时间,并且显示了一段时间,因为“at my code”失败。 我需要calendar enabled属性来检查是否在移动设备上启用了日历。 我没有在日历级别和运行之间的代码上更改任何内容。有什么解决办法吗 这是请求方法 methodPropfind=(标题、身份验证、正文、url、cb)-> 选择权= 方法:“PROPFIND” 标题:标题 auth:auth 身体:身体 url:url http选项,cb 返回真值 正文:Calendar 如何在列出icloud日历时为每个请求获得相同的propfind响应?,calendar,icloud,webdav,caldav,propfind,Calendar,Icloud,Webdav,Caldav,Propfind,我使用caldav request propfind从icloud中列出日历,我可以获得日历集合,但每次运行的输出都不同。 “日历启用”和“当前用户主体”属性丢失了一段时间,并且显示了一段时间,因为“at my code”失败。 我需要calendar enabled属性来检查是否在移动设备上启用了日历。 我没有在日历级别和运行之间的代码上更改任何内容。有什么解决办法吗 这是请求方法 methodPropfind=(标题、身份验证、正文、url、cb)-> 选择权= 方法:“PROPFIND”
<?xml version='1.0' encoding='UTF-8'?>
<propfind xmlns="DAV:" xmlns:D="http://apple.com/ns/ical/">
<prop>
<displayname/>
<C:getctag xmlns:C="http://calendarserver.org/ns/"/>
<owner/>
<D:calendar-color/>
<D:calendar-order/>
<current-user-privilege-set/>
<invite xmlns:A="http://calendarserver.org/ns/"/>
<D:calendar-enabled />
<C:schedule-default-calendar-URL xmlns:C='urn:ietf:params:xml:ns:caldav'/>
</prop>
</propfind>
Depth:1
Url
url是主体url
我已经将xml响应转换为javascript对象,这是我从列表中得到的日历之一
我期望每次跑步都有“预期输出”,但有时我会得到“NotExpectedOutput”。为什么不同
注意预期输出:
预期输出
{ displayname: { _attributes: { xmlns: 'DAV:' }, _text: 'Family' },
getctag:
{ _attributes: { xmlns: 'http://calendarserver.org/ns/' },
_text: 'FT=-@RU=39505321-e02c-46a5-a9ba-544e5c3f0fac@S=678' },
owner:
{ _attributes: { xmlns: 'DAV:' },
href: { _text: '/1146333145/principal/' } },
'calendar-color':
{ _attributes: { xmlns: 'http://apple.com/ns/ical/' },
_text: '#FFCC00' },
'calendar-order':
{ _attributes: { xmlns: 'http://apple.com/ns/ical/' },
_text: '1001' },
'current-user-privilege-set':
{ _attributes: { xmlns: 'DAV:' },
privilege:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] } }
{ displayname: { _text: 'Family' },
getctag:
{ _attributes: { xmlns: 'http://calendarserver.org/ns/' },
_text: 'FT=-@RU=39505321-e02c-46a5-a9ba-544e5c3f0fac@S=678' },
owner: { href: { _text: '/11463333145/principal/' } },
'calendar-color':
{ _attributes:
{ xmlns: 'http://apple.com/ns/ical/',
'symbolic-color': 'yellow' },
_text: '#FFCC00' },
'calendar-order':
{ _attributes: { xmlns: 'http://apple.com/ns/ical/' },
_text: '1001' },
'current-user-privilege-set':
{ privilege:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] },
'current-user-principal': { href: { _text: '/11463335145/principal/' } },
'calendar-enabled':
{ _attributes: { xmlns: 'http://apple.com/ns/ical/' },
_text: 'true' } }