0

我正在使用 Office 365 Graph API 来获取一些报告。我尝试使用从 applicationUsageSummaryEvents 报告的结果中获取的 applicationId 从以下端点获取应用程序使用详细信息事件:

https://graph.windows.net/acme/reports/applicationUsageDetailEvents?api-version=beta&applicationId=13d54852-ae25-4f0b-abcd-b09eea89f431

不幸的是,即使在尝试了我能想到的“applicationId”的所有排列之后,我仍然会收到以下错误。

{ "error":{ "code":"","message":"applicationId is required" } }

我已经在网上找到了我能想到的所有地方,试图找出这个电话。从这里我知道架构将其显示为“applicationId”:

<EntityType Name="ApplicationUsageDetailEvent">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Edm.String" Nullable="false" />
<Property Name="eventTime" Type="Edm.DateTimeOffset" Nullable="false" />
<Property Name="maxActivityTimeStamp" Type="Edm.DateTimeOffset" Nullable="false"     />
<Property Name="applicationId" Type="Edm.Guid" Nullable="false" />
<Property Name="numberOfClicks" Type="Edm.Int32" Nullable="false" />
<Property Name="totalDay30Count" Type="Edm.Int32" />
<Property Name="totalDay7Count" Type="Edm.Int32" />
<Property Name="totalHour24Count" Type="Edm.Int32" />
<Property Name="userName" Type="Edm.String" />
 </EntityType>

谁能告诉我如何正确地将应用程序 ID 传递到此 REST 调用中以获取结果?

提前致谢!

4

1 回答 1

0

由于它是一个 odata API,因此您需要通过 $filter 参数传入 appId: + "&$filter=applicationId eq fe3f7e7b-0044-4690-8ea5-1e9c6be5d026"

您的网址如下所示: https://graph.windows.net/acme/reports/applicationUsageDetailEvents?api-version=beta& $filter=applicationId eq 13d54852-ae25-4f0b-abcd-b09eea89f431

于 2015-12-11T21:02:01.143 回答