支持 msgraph-sdk-java 中的 beta API [英] Support for beta APIs in msgraph-sdk-java
问题描述
我们正在尝试访问处于测试阶段的团队的渠道 API.
API - https://graph.microsoft.com/beta/teams/{team-id}/channels
而且似乎不支持来自 msgraph-sdk-java 的 beta API.有人可以确认是否已经提供这种支持或 msgraph-sdk-java 只支持 v1.0 API 吗?
v1.0 的示例工作 API 如下:
IGraphServiceClient.groups().buildRequest().得到().getCurrentPage()...//处理失败情况});
要访问 beta 端点,您可以更改 GraphServiceClient 对象指向的 URL:
graphClient.setServiceRoot("https://graph.microsoft.com/beta/");
<块引用>
更多信息供您参考:https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Custom-Requests
We are trying to access channels API of a team, which is in beta.
API - https://graph.microsoft.com/beta/teams/{team-id}/channels
and it seems that there is no support for beta API's from msgraph-sdk-java. Can someone confim whether this support is given yet or msgraph-sdk-java just supports v1.0 API's?
Sample working API for v1.0 is as follows:
IGraphServiceClient
.groups()
.buildRequest()
.get()
.getCurrentPage()
...
// Handle failure case
});
To access the beta endpoint, you can change the URL that the GraphServiceClient object points to:
graphClient.setServiceRoot("https://graph.microsoft.com/beta/");
More information for your reference: https://github.com/microsoftgraph/msgraph-sdk-java/wiki/Custom-Requests
这篇关于支持 msgraph-sdk-java 中的 beta API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!