Support for beta APIs in msgraph-sdk-java

纵饮孤独 提交于 2020-07-20 03:36:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!