【发布时间】:2021-07-29 13:54:47
【问题描述】:
我正在尝试使用 Graph Api 在我的 Microsoft Teams 频道中创建一个选项卡,但我一直收到有关程序以非零退出值 1 完成的错误。
public static void createTab(){
if (graphClient == null) throw new NullPointerException(
"Graph client has not been initialized. Call initializeGraphAuth before calling this method");
TeamsTab newTab = new TeamsTab();
newTab.configuration.contentUrl = "https://www.google.com/?client=safari";
newTab.configuration.entityId = null;
newTab.configuration.removeUrl = null;
newTab.configuration.websiteUrl = "https://www.google.com/?client=safari";
newTab.displayName = "New Website Tab";
//Post New Tab
graphClient.teams("teams-id").channels("channel-id")
.tabs().buildRequest().expand("teamsApp").post(newTab);
}
This is my code, can someone please have a look?
【问题讨论】:
标签: java microsoft-graph-api microsoft-graph-sdks microsoft-graph-teams