问题
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
});
回答1:
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
来源:https://stackoverflow.com/questions/52408575/support-for-beta-apis-in-msgraph-sdk-java