我想从公共频道收到消息。我可以从我参与的信息中获取信息,但我想从公共频道检索我不属于的消息。
在microsoft上只有很少的api可用:https://learn.microsoft.com/en-us/graph/api/channel-list-messages?view=graph-rest-1.0&tabs=http https://learn.microsoft.com/en-us/graph/api/chatmessage-delta?view=graph-rest-1.0&tabs=http
我创建了一个具有所有适当应用程序权限的应用程序。我还请求微软(https://learn.microsoft.com/en-us/graph/teams-protected-apis)提供受保护的apis请求。
但是,我仍然无法获得所有公共频道的消息,并不断获得以下错误:
"response": {
"error": {
"code": "Forbidden",
"message": "UnknownError",
"innerError": {
"date": "2022-06-30T00:48:11",
"request-id": "25360f0f-xxxx-xxxx-xxxx-78fa36f30f1c",
"client-request-id": "25360f0f-xxxx-xxxx-xxxx-78fa36f30f1c"
}
}
}
任何帮助都是徒劳无功的。
发布于 2022-06-30 00:01:31
发布于 2022-07-01 04:29:48
GET / team /team-id/只对团队成员、所有者或管理员可访问。只有属于团队名册的人或者是管理员(全球行政管理或团队服务管理或非盟管理)才能看到GET /team/team-id/下的任何内容。
即使是管理员也不能从他们不属于的通道中提取消息。那是故意的。
https://stackoverflow.com/questions/72811357
复制