Office Graph TrendingAround API结果? [英] Office Graph TrendingAround API result?

查看:91
本文介绍了Office Graph TrendingAround API结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试查看在我周围调用文件趋势分析API的结果( https://graph.microsoft.com/beta/me/trendingAround ),但我得到以下信息:

I am trying to see what is the result of calling Files Trending around me API (https://graph.microsoft.com/beta/me/trendingAround) but I just get the following:

{{ "@ odata.context":" https://graph.microsoft.com/beta/ $ metadata #users('071578c7-9961-4b43-970b-66fbbb6a938f')/trendingAround, 价值": [] }}

{{ "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('071578c7-9961-4b43-970b-66fbbb6a938f')/trendingAround", "value": [] }}

如果我致电获取我的文件( https://graph.microsoft .com/v1.0/me/drive/root/children ),我得到了文件列表,但是却收到任何有关我周围的文件趋势的信息,而我没有找到有关它的任何文档,只是看看该API包含了什么.

If I call Get My Files (https://graph.microsoft.com/v1.0/me/drive/root/children) I get a list of my files, but I am getting anything calling Files trending around me, and I didn't find any documentation about it, just to see what that API includes.

有人能告诉我它的结果是什么吗?

Can anybody tell me what should be the resoult of it?

谢谢!

推荐答案

trendingAround定义为:

<NavigationProperty Name="trendingAround" Type="Collection(Microsoft.OutlookServices.driveItem)" ContainsTarget="true" />

,其中driveItem是OneDrive项类型. (没有Microsoft.OutlookServices定义的新属性.)因此,从模式上来说,/me/trendingAround的响应与/me/drive/root/children的响应兼容.

where driveItem is the OneDrive item type. (There are no new properties defined by Microsoft.OutlookServices.) Thus schema-wise, the response from /me/trendingAround is compatible with the response from /me/drive/root/children.

但是,尽管2个响应符合相同的架构,但这并不意味着它们具有相同的填充属性. trendingAround的响应似乎包含较少的属性.这是我得到的示例响应:

However, while the 2 responses conform to the same schema, it doesn't mean that they have the same properties populated. The response from trendingAround seems to contain fewer properties. Here is a sample response I get:

{
  "@odata.context": "https://graph.microsoft.com/beta/$metadata#users('...')/trendingAround",
  "value": [
    {
      "@odata.id": "Drives('...')/items('..')",
      "id": "...",
      "name": "...",
      "DateTimeCreated": "...",
      "DateTimeLastModified": "...",
      "webUrl": "..."
    }
 ]
}

请记住,/me/trendingAround不是官方API,并且可能会更改/删除.

Keep in mind that /me/trendingAround is not an official API and is subject to change/removal.

这篇关于Office Graph TrendingAround API结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆