C# MS GRAPH API:我可以对文件夹使用getactivitybyInterval吗?
问题陈述/目标 我需要一种方法来查看一个特定的文件夹是否在今天发生了更改—内容方面—而不必阅读其中的每个文件。 一旦我知道文件夹内容已被修改/更改,我将深入查找实际更改的内容 我刚刚读到了getActivitiesByInterval()的内容,想知道我是否可以在Onedrive中的文件夹中使用它 到目前为止,我在MS Graph Explorer中尝试了以下内容:C# MS GRAPH API:我可以对文件夹使用getactivitybyInterval吗?,c#,microsoft-graph-api,C#,Microsoft Graph Api,问题陈述/目标 我需要一种方法来查看一个特定的文件夹是否在今天发生了更改—内容方面—而不必阅读其中的每个文件。 一旦我知道文件夹内容已被修改/更改,我将深入查找实际更改的内容 我刚刚读到了getActivitiesByInterval()的内容,想知道我是否可以在Onedrive中的文件夹中使用它 到目前为止,我在MS Graph Explorer中尝试了以下内容: https://graph.microsoft.com/v1.0/users/<myUserID>/drive/ro
https://graph.microsoft.com/v1.0/users/<myUserID>/drive/root/children
很抱歉,我没有找到使用Microsoft Graph API查找给定文件夹按间隔获取活动的方法。上述api是指资源/项目活动级别。
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('<myuserid>')/drive/root/children",
"value": [
{
"createdDateTime": "2021-04-02T13:31:58Z",
"eTag": "\"{fwefasdfasdf-1942-ff345-b554-rrasdfasdfasdf},1\"",
"id": "<thefolderid>",
"lastModifiedDateTime": "2021-04-02T13:31:58Z",
"name": "aNewFolder",
"webUrl": "https://asdfasdf-my.sharepoint.com/personal/jdoe_asdfasdf_onmicrosoft_com/Documents/aNewFolder",
"cTag": "\"c:{f234234234-1942-46DB-B77B-asdfasdfasdf},0\"",
"size": 0,
"createdBy": {
"user": {
"email": "john@asdfasdf.onmicrosoft.com",
"id": "<myuserid>",
"displayName": "John Doe"
}
},
"lastModifiedBy": {
"user": {
"email": "john@asdfasdf.onmicrosoft.com",
"id": "<myserid>",
"displayName": "John Doe"
}
},
"parentReference": {
"driveId": "<theparentdriveid>",
"driveType": "business",
"id": "<theparentid>",
"path": "/drive/root:"
},
https://graph.microsoft.com/v1.0/drives/<theparentdriveid>/items/<thefolderid>/getActivitiesByInterval(startDateTime='2017-01-01',endDateTime='2017-01-10',interval='day')
{
"error": {
"code": "itemNotFound",
"message": "Item not found",
"innerError": {
"date": "2021-04-07T19:46:38",
"request-id": "ffff-fef6-4419-982e-asf232424td",
"client-request-id": "b234234f-fef6-4419-982e-42gga75645"
}
}
}