我正在尝试过滤 SharePoint 项目列表,以便仅获取过去一天内修改过的项目。根据以下 Graph API 文档,我应该可以使用
$filter=lastModifiedDateTime ge {24 小时前}
查询参数
https://learn.microsoft.com/en-us/graph/api/listitem-list?view=graph-rest-1.0
https://learn.microsoft.com/en-us/graph/api/resources/listitem?view=graph-rest-1.0
我使用的示例 URL 是:
https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items?$filter=lastModifiedDateTime ge 2025-04-28T00:00:00Z
我收到了来自微软的“无效请求”,但没有任何实际原因。
如果我不添加过滤器,我就可以毫无问题地退回所有商品。