我尝试使用Microsoft Graph API创建消息草稿时出错

时间:2018-10-04 17:41:49

标签: azure azure-active-directory azure-ad-graph-api

我使用了以下说明:https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/user_post_messages

我有不记名令牌和用户,但是当我尝试使用Postman创建消息时会抛出异常

我的要求:

https://graph.microsoft.com/v1.0/users/4850bf92-08ff-41f3-9891-51561239aaa54/messages
{
    "subject":"Did you see last night's game?",
    "importance":"Low",
    "body":{
        "contentType":"HTML",
        "content":"They were <b>awesome</b>!"
    },
    "toRecipients":[
        {
            "emailAddress":{
                "address":"user@mail.com"
            }
        }
    ]
}

响应:

{
    "error": {
        "code": "ResourceNotFound",
        "message": "Resource could not be discovered.",
        "innerError": {
            "request-id": "2b956003-3e1a-4d0d-b5dd-e7f17625e1ac",
            "date": "2018-10-04T17:13:57"
        }
    }
}

0 个答案:

没有答案