对于给定的团队,我想选择一个特定的频道并列出该频道的标签。
使用x作为检查者ID:
我可以使用以下HTTP GET
调用来查看组:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
以下内容使我可以查看特定频道:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/
结果如下:
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#groups('193cee12-xxxx-xxxx-xxxx-a8022fe6754c')/team/channels/$entity",
"id": "19:xxxxxxxxxxxxxxxxxx@thread.skype",
"displayName": "General",
"description": "Test ",
"email": "",
"webUrl": "https://teams.microsoft.com/l/channel/19%xxxxxxxxxxxxxxxxxxx%40thread.skype/General?groupId=193cee12-xxxx-xxxx-xxxx-a8022fe6754c&tenantId=d02b4c26-xxxx-xxxx-xxxx-0e19a90257d6"
}
当我尝试访问通道的任何属性时,都会发生错误:
https://graph.microsoft.com/v1.0/groups/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
/team/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
错误看起来像这样:
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "1b1040df-xxxx-xxxx-xxxx-04c7952674ba",
"date": "2019-11-04T11:xx:xx"
}
}
}
我是群组所有者。
没有错误消息,因此很难弄清楚出了什么问题。还有其他人经历过吗?
答案 0 :(得分:1)
要获取有关频道的信息,您需要使用teams
段而不是groups
段。
\/ -- 'teams' here, not 'groups'
/v1.0/teams/193cexxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/channels/19:xxxxxxxxxxxxxxxxxxxxx@thread.skype/tabs
https://docs.microsoft.com/en-us/graph/api/teamstab-list?view=graph-rest-1.0