我使用了Microsoft Teams的消息获取API。 到目前为止,它能够获取所有消息。 但是,从昨天开始,突然之间我再也收不到我收到的消息。这是错误吗?
可以使用API获取昨天和以后的消息。 如果您在“团队”的客户端应用程序中查看相应团队的聊天记录,则过去的消息将保留昨天。
这是我正在使用的API
获取/ teams / {id} / channels / {id} / messages
===================== 20190904后记==================== >
我被抓了。这是“团队”应用程序屏幕。您可以看到第一页上至少有4个对话。并且排列了8/26条消息。 enter image description here
第二页确认存在可以使用API进行的对话。 enter image description here
然后使用相同的帐户来使用Graph Explorer。描述了执行消息获取API的结果。 (id隐藏)。
仅返回3条消息。 即使访问nextLink,也将返回0个项目。
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#teams('teamid')/channels('channelid')/messages",
"@odata.count": 3,
"@odata.nextLink": "https://graph.microsoft.com/beta/teams/teamid/channels/channelid/messages?$skiptoken=token",
"value": [
{
"id": "id",
"replyToId": null,
"etag": "etagid",
"messageType": "message",
"createdDateTime": "2019-08-02T05:44:27.892Z",
"lastModifiedDateTime": "2019-08-02T06:28:57.101Z",
"deletedDateTime": null,
"subject": "重要",
"summary": null,
"importance": "high",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/channelid/id?groupId=teamid&tenantId=tenantid&createdTime=1564724667892&parentMessageId=id",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "userid",
"displayName": "Hoshi, Rikito (ゲスト)",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "<div><div>\n<div>\n<div>会話がすべて消えてしまったので再投稿します。</div>\n\n<div>以下の内容を必ず読んでおいてください。</div>\n\n<div> </div>\n\n\n<div itemprop=\"copy-paste-block\">TESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTESTTEST</div>\n</div>\n</div>\n</div>"
},
"attachments": [],
"mentions": [],
"reactions": []
},
{
"id": "id",
"replyToId": null,
"etag": "etagid",
"messageType": "message",
"createdDateTime": "2019-09-03T08:16:40.73Z",
"lastModifiedDateTime": null,
"deletedDateTime": null,
"subject": "APIで取れなくなってから投稿",
"summary": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/channelid/etagid?groupId=teamid&tenantId=tenantid&createdTime=1567498600730&parentMessageId=id",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "userid",
"displayName": "TalkMap",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "text",
"content": "テスト"
},
"attachments": [],
"mentions": [],
"reactions": []
},
{
"id": "id",
"replyToId": null,
"etag": "etagid",
"messageType": "message",
"createdDateTime": "2019-09-02T05:17:51.671Z",
"lastModifiedDateTime": null,
"deletedDateTime": null,
"subject": "",
"summary": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/channelid/etagid?groupId=teamid&tenantId=tenantid&createdTime=1567401471671&parentMessageId=id",
"policyViolation": null,
"from": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "userid",
"displayName": "TalkMap",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "<div>タブを追加し、会話を開始しました。</div><attachment id=\"tab::71cf5160-ec4f-4b06-b334-62f3759a7de8\"></attachment>"
},
"attachments": [
{
"id": "tab::id",
"contentType": "tabReference",
"contentUrl": null,
"content": null,
"name": "TalkMap",
"thumbnailUrl": null
}
],
"mentions": [],
"reactions": []
}
]
}
答案 0 :(得分:0)
我没有看到相同的行为。很好。
根据您的描述,这应该不是普遍问题,而是Microsoft Teams的后端服务问题。
如果您已遵循Send feedback about the Microsoft Teams developer platform但没有帮助,则强烈建议contact O365 admin support进行进一步的调查。