SharePoint Search API 已死,如何在 Microsoft Graph API 中实现它

Pra*_*n R 4 sharepoint microsoft-graph-api

https://msdn.microsoft.com/en-us/office/office365/howto/query-office-graph-using-gql-with-search-rest-api
根据文档,Sharepoint 搜索 API 将于 8 月停止使用2017 年 3 月 31 日。我用过

xx.sharepoint.com/_api/search/query?querytext='data'&startrow=11

对于“一切”搜索。并为人们添加&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31'带有上述网址的参数。但是我怎样才能达到同样的结果

graph.microsoft.com/v1.0/

在 Microsoft 图形 API 中,他们只提到了 SharePoint 站点搜索。 https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/sharepoint 有人可以指出正确的文档,以便使用带参数的图形 API 令牌搜索 SharePoint 中的所有内容。

Dzh*_*hev 5

停止使用的是在您的通话中使用 GQL。例如:

https://<tenant_address>/_api/search/query?querytext='QUERY'&properties='GraphQuery:and(ACTOR(ME\,action\:1020)'
Run Code Online (Sandbox Code Playgroud)

请注意,GraphQuery这是 URL 的一部分。

我认为常规搜索不会受到影响。