尝试在SharePoint搜索上获取缩略图
这将返回正确的搜索结果:
https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}')
但是这个:
https://graph.microsoft.com/v1.0/drives/{SHAREPOINT_DRIVE_ID}/root/search(q='{QUERY}')?expand=thumbnails(select=large)
退货:
{"error":{"code":"-1, Microsoft.SharePoint.Client.UnknownError","message":"Unknown Error","innerError":{"request-id":"69bc5cdf-0f4a-4d60-9c3c-513983dd8e0b","date":"2016-08-04T17:50:11"}}},"status":500,"statusText":"Internal Server Error"}
文档明确指出:This method supports the OData Query Parameters to help customize the response.
根据测试,expand
适用于https://graph.microsoft.com/v1.0/me/drive/root?expand=thumbnails(select=large)
。
Microsoft Graph搜索项API似乎不支持展开缩略图。
如果你想要这个功能,你可以从这里提交反馈。