Forum Discussion
Samiron Mallick
Oct 10, 2018Copper Contributor
How to fetch office365 unread emails using postman
I am trying to fetch unread emails from inbox of my office365 account using postman. With the help of Microsoft Graph API reference i am able to generate access token as in below format: POST ht...
VasilMichev
Oct 10, 2018MVP
You add the token to an auth header, something like this:
'Content-Type'='application\json' 'Authorization'="Bearer aaaaaaaaaaaaaaaaa"
- Samiron MallickOct 10, 2018Copper Contributor
While doing so with the below code:
GET /v1.0/me/messages HTTP/1.1
Host: graph.microsoft.com
Content-Type: application\json
Authorization: Bearer eyJ0eXAiOiJK..................Getting below error. Have I missed anything?
{
"error": {
"code": "UnknownError",
"message": "",
"innerError": {
"request-id": "bafebf1b-9c36-4571-81be-29d54468b172",
"date": "2018-10-10T19:36:40"
}
}
}- VasilMichevOct 11, 2018MVP
No idea, sorry. UnknownError doesn't give us much to work with :)