列出答复
命名空间:microsoft.graph
此方法仅列出指定邮件的答复(如果有)。 若要获取消息本身,只需调用 获取频道消息。
注意:此 API 支持使用 更改通知订阅更改(创建、更新和删除)。 这使呼叫方可以实时订阅和获取更改。 有关详细信息,请参阅获取消息通知。
权限
需要以下权限之一才能调用此 API。要了解包括如何选择权限的详细信息,请参阅权限。
| 权限类型 | 权限(从最低特权到最高特权) |
|---|---|
| 委派(工作或学校帐户) | ChannelMessage.Read.All |
| 委派(个人 Microsoft 帐户) | 不支持。 |
| 应用程序 | ChannelMessage.Read.Group*、ChannelMessage.Read.All |
注意:标有 * 的权限用于 特定于资源的同意。
备注
在使用应用程序权限调用此 API 之前,你必须先请求访问权限。 有关详细信息,请参阅 Microsoft Teams 中的受保护 API。
HTTP 请求
GET /teams/{team-id}/channels/{channel-id}/messages/{message-id}/replies
可选的查询参数
可以使用 $top 查询参数控制每个响应中的项目数。 允许的最大 $top 值为 50。
目前不支持其他 OData 查询参数。
请求标头
| 标头 | 值 |
|---|---|
| Authorization | Bearer {token}。必需。 |
请求正文
请勿提供此方法的请求正文。
响应
如果成功,此方法在响应正文中返回 200 OK 响应代码和 chatmessage 对象集合。
示例
请求
本示例中,指定的邮件有三个回复。
GET https://graph.microsoft.com/v1.0/teams/fbe2bf47-16c8-47cf-b4a5-4b9b187c508b/channels/19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2/messages/1616989510408/replies
响应
以下示例显示了相应的响应。
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#teams('fbe2bf47-16c8-47cf-b4a5-4b9b187c508b')/channels('19%3A4a95f7d8db4c4e7fae857bcebe0623e6%40thread.tacv2')/messages('1616989510408')/replies",
"@odata.count": 3,
"value": [
{
"id": "1616989753153",
"replyToId": "1616989510408",
"etag": "1616989753153",
"messageType": "message",
"createdDateTime": "2021-03-29T03:49:13.153Z",
"lastModifiedDateTime": "2021-03-29T03:49:13.153Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3A4a95f7d8db4c4e7fae857bcebe0623e6%40thread.tacv2/1616989753153?groupId=fbe2bf47-16c8-47cf-b4a5-4b9b187c508b&tenantId=2432b57b-0abd-43db-aa7b-16eadd115d34&createdTime=1616989753153&parentMessageId=1616989510408",
"policyViolation": null,
"eventDetail": null,
"from": {
"application": null,
"device": null,
"user": {
"id": "8ea0e38b-efb3-4757-924a-5f94061cf8c2",
"displayName": "Robin Kline",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "text",
"content": "Reply3"
},
"channelIdentity": {
"teamId": "fbe2bf47-16c8-47cf-b4a5-4b9b187c508b",
"channelId": "19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
},
{
"id": "1616989750004",
"replyToId": "1616989510408",
"etag": "1616989750004",
"messageType": "message",
"createdDateTime": "2021-03-29T03:49:10.004Z",
"lastModifiedDateTime": "2021-03-29T03:49:10.004Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3A4a95f7d8db4c4e7fae857bcebe0623e6%40thread.tacv2/1616989750004?groupId=fbe2bf47-16c8-47cf-b4a5-4b9b187c508b&tenantId=2432b57b-0abd-43db-aa7b-16eadd115d34&createdTime=1616989750004&parentMessageId=1616989510408",
"policyViolation": null,
"eventDetail": null,
"from": {
"application": null,
"device": null,
"user": {
"id": "8ea0e38b-efb3-4757-924a-5f94061cf8c2",
"displayName": "Robin Kline",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "text",
"content": "Reply2"
},
"channelIdentity": {
"teamId": "fbe2bf47-16c8-47cf-b4a5-4b9b187c508b",
"channelId": "19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
},
{
"id": "1616989747416",
"replyToId": "1616989510408",
"etag": "1616989747416",
"messageType": "message",
"createdDateTime": "2021-03-29T03:49:07.416Z",
"lastModifiedDateTime": "2021-03-29T03:49:07.416Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/19%3A4a95f7d8db4c4e7fae857bcebe0623e6%40thread.tacv2/1616989747416?groupId=fbe2bf47-16c8-47cf-b4a5-4b9b187c508b&tenantId=2432b57b-0abd-43db-aa7b-16eadd115d34&createdTime=1616989747416&parentMessageId=1616989510408",
"policyViolation": null,
"eventDetail": null,
"from": {
"application": null,
"device": null,
"user": {
"id": "8ea0e38b-efb3-4757-924a-5f94061cf8c2",
"displayName": "Robin Kline",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "text",
"content": "Reply1"
},
"channelIdentity": {
"teamId": "fbe2bf47-16c8-47cf-b4a5-4b9b187c508b",
"channelId": "19:4a95f7d8db4c4e7fae857bcebe0623e6@thread.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
}
]
}
反馈
提交和查看相关反馈