我们有一个集成,可以将我们的日历与用户的365日历同步。问题是当前端点here会返回只读日历(例如,通过ical添加的日历)
我们需要确保我们收到的日历ID是可写的。有没有办法实现这个目标?
答案 0 :(得分:0)
您可以从https://outlook.office.com/api/v2.0/me/calendars
endpoint获得此信息。这将返回Calendar对象的集合:
{
"@odata.context": "https://outlook.office.com/api/v2.0/$metadata#Me/Calendars",
"value": [
{
"@odata.id": "https://outlook.office.com/api/v2.0/Users('ddfcd489-628b-40d7-b48b-57002df800e5@1717622f-1d94-4d0c-9d74-709fad664b77')/Calendars('AAMkAGI2TGuLAAA=')",
"Id": "AAMkAGI2TGuLAAA=",
"Name": "Calendar",
"Color": "Auto",
"ChangeKey": "nfZyf7VcrEKLNoU37KWlkQAAA0x0+w==",
"CanShare":true,
"CanViewPrivateItems":true,
"CanEdit":true,
"Owner":{
"Name":"Fanny Downs",
"Address":"fannyd@adatum.onmicrosoft.com"
}
}
]
}