Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/scala/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Microsoft graph api Microsoft Graph API中的趋势分析_Microsoft Graph Api_Onedrive - Fatal编程技术网

Microsoft graph api Microsoft Graph API中的趋势分析

Microsoft graph api Microsoft Graph API中的趋势分析,microsoft-graph-api,onedrive,Microsoft Graph Api,Onedrive,我是SPFX框架和MSGraph API的新手 我的要求是显示我周围的趋势项,因此使用API()。在响应中,将显示PreviewImageURL(这是onedrive API) 我试图将url绑定到img标记,但图像被破坏。如何显示PreviewImageURL?作为一个测试端点,它可能会很棘手,但根据我在Graph Explorer()中看到的情况,PreviewImageURL是对SharePoint REST API的调用 这些URL的原型看起来像https://{tenant}.shar

我是SPFX框架和MSGraph API的新手

我的要求是显示我周围的趋势项,因此使用API()。在响应中,将显示PreviewImageURL(这是onedrive API)


我试图将url绑定到img标记,但图像被破坏。如何显示PreviewImageURL?

作为一个测试端点,它可能会很棘手,但根据我在Graph Explorer()中看到的情况,
PreviewImageURL
是对SharePoint REST API的调用

这些URL的原型看起来像
https://{tenant}.sharepoint.com/_-api/v2.0/drives/{drive-id}/items/{item-id}/thumbnails/0/small/thumbnailContent
。换句话说,此URL表示对的调用,而不是对图像本身的URL


据我所知,目前还没有办法通过图表得出这个结论。但是,您应该能够对
previewImageUrl
进行第二次REST调用以获取对象。请记住,这将要求您在授权期间请求其他作用域,以涵盖SharePoint API

作为一个beta端点,这可能很棘手,但根据我在Graph Explorer()中看到的情况,
previewImageUrl
是对SharePoint REST API的调用

这些URL的原型看起来像
https://{tenant}.sharepoint.com/_-api/v2.0/drives/{drive-id}/items/{item-id}/thumbnails/0/small/thumbnailContent
。换句话说,此URL表示对的调用,而不是对图像本身的URL

据我所知,目前还没有办法通过图表得出这个结论。但是,您应该能够对
previewImageUrl
进行第二次REST调用以获取对象。请记住,这将要求您在授权期间请求其他作用域,以涵盖SharePoint API