我正在玩 msgraph api,我可以发送消息等,但我希望能够检查新创建的消息的状态。发送新消息时返回的并不多,实际上正文是空白的,下面是状态码和标头
Success - Status Code 202
client-request-id: 067e8a6e-ca66-450c-bef3-55b61f72a6bb
content-type: text/plain
cache-control: private
request-id: 067e8a6e-ca66-450c-bef3-55b61f72a6bb
是否有 api 调用,您可以在其中获取有关请求状态的信息?因为 request-id 不是发送消息头或推送通知的一部分。
还有一个 API 调用可以让我获取用户被授权发送的所有电子邮件地址,以避免此类响应
{
"error": {
"code": "ErrorSendAsDenied",
"message": "The user account which was used to submit this request does not have the right to send mail on behalf of the specified sending account., Cannot submit message.",
"innerError": {
"request-id": "50c4d68b-f23b-4f1f-8202-e95220e45628",
"date": "2019-02-21T21:43:57"
}
}
}