Asked by:
getting some authentication error of api https://outlook.office.com/api/v2.0/me/MailFolders/Inbox/messages

Question
-
https://outlook.office.com/api/v2.0/me/MailFolders/Inbox/messages for this i am getting the below error.
{"error":{"code":"OAuthMissingForThisApiVersion","message":"Authentication for this API version requires OAuth."}}
Friday, October 13, 2017 7:45 AM
All replies
-
There is absolutely no way to understand what you are asking. Please try to ask a complete question. What script are you running?
\_(ツ)_/
Friday, October 13, 2017 8:04 AM -
Sorry @Jrv....
i am just trying to access the above uri with the help of Invoke-RestMethod and its throwing bad request 400
Friday, October 13, 2017 10:24 AM -
You have to provide credentials in the correct format (OAuth).
\_(ツ)_/
Friday, October 13, 2017 10:45 AM -
what is the correct format (OAuth)Friday, October 13, 2017 12:29 PM
-
Here are the instructions for acquiring and usig a token for authentication:
https://docs.microsoft.com/en-us/outlook/rest/get-startedhttps://oauth.net/articles/authentication/
The answer is dependent on the service.
\_(ツ)_/
- Proposed as answer by Albert LingMicrosoft contingent staff Tuesday, October 24, 2017 4:26 AM
Friday, October 13, 2017 1:13 PM