首页 文章

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

提问于
浏览
3

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

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

为"Everything" serach . 并为人们添加param &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中的所有内容的正确文档 .

1 回答

  • 4

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

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

    请注意 GraphQuery 是URL的一部分 .

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

相关问题