Microsoft Graph API 获取时间间隔内的日历更改,按 lastModifiedDateTime 筛选
Microsoft Graph API get calendar changes in a time interval, filter by lastModifiedDateTime
我正在尝试在特定日期之后获取日历中修改或创建的事件。
- 在documentation link之后,我可以使用这个url来获取今年的事件。
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00
- 因为我只想在特定日期之后获取修改或创建的事件,我试图通过这种方式使用过滤器和 lastModifiedDateTime 属性
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&$filter=lastModifiedDateTime%20gt%202020-10-01T00:00:00z
试图获取本月修改的事件,我得到一个空响应,甚至没有错误。
- 我也试过这种方式 documentation link 使用
https://graph.microsoft.com/v1.0/me/calendarView/delta?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&lastModifiedDateTime%20gt%202020-10-01T00:00:00z
但它 returns 一年中的所有事件并且不按 lastModifiedDateTime 过滤。
有什么正确的方法可以在特定日期之后获取修改或创建的日历事件?
看起来 calendarView 不能与过滤器一起正常工作,一个可行的替代方法是过滤器列表事件,Documentation Link
一个有效的 url 看起来像这样:https://graph.microsoft.com/v1.0/me/calendar/events?$filter=lastModifiedDateTime%20gt%20" + date + "z"
我正在尝试在特定日期之后获取日历中修改或创建的事件。
- 在documentation link之后,我可以使用这个url来获取今年的事件。
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00
- 因为我只想在特定日期之后获取修改或创建的事件,我试图通过这种方式使用过滤器和 lastModifiedDateTime 属性
https://graph.microsoft.com/v1.0/me/calendarview?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&$filter=lastModifiedDateTime%20gt%202020-10-01T00:00:00z
试图获取本月修改的事件,我得到一个空响应,甚至没有错误。
- 我也试过这种方式 documentation link 使用
https://graph.microsoft.com/v1.0/me/calendarView/delta?startDateTime=2020-01-01T00:00:00&endDateTime=2021-01-01T00:00:00&lastModifiedDateTime%20gt%202020-10-01T00:00:00z
但它 returns 一年中的所有事件并且不按 lastModifiedDateTime 过滤。
有什么正确的方法可以在特定日期之后获取修改或创建的日历事件?
看起来 calendarView 不能与过滤器一起正常工作,一个可行的替代方法是过滤器列表事件,Documentation Link
一个有效的 url 看起来像这样:https://graph.microsoft.com/v1.0/me/calendar/events?$filter=lastModifiedDateTime%20gt%20" + date + "z"