Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

error : { "code": "MailboxNotEnabledForRESTAPI", "message": "REST API is not yet supported for this mailbox." }

Tags:

outlook

I am new with the "outlook" api. i want to get all calender event,contact and mail from "outlook account".

but i does not get appropriate result with "outlook" account its working fine with "office365" account

i follow this documentation for get all required data and i create application for getting data from here

but every time when i login with my outlook account it's give me an error like this.

Please help me out. Thanks in advance...

like image 785
Ranva Rahul Avatar asked Aug 19 '15 10:08

Ranva Rahul


2 Answers

Just ran into the same problem and found an explanation here. It appears we're going to have to wait for the accounts to be enabled unless you request a testing account as described in the link. Confirmed the same results when using the non-enabled account in the Outlook Oauth Sandbox.

From the first link

  • Because enabling mailboxes on Outlook.com for the Outlook REST API happens over a period of time, your existing Outlook.com account may take a while to get enabled. To test your app accessing data on Outlook.com mailboxes that have already been enabled, you can request a new, enabled Outlook.com developer preview account by emailing [email protected].
  • If your app accesses Outlook.com mailbox data, it should handle scenarios where the user's mailbox has not yet been enabled for the Outlook REST API. In such situations, when you make a REST request, you would get an error like the following:
    • HTTP error: 404
    • Error code: MailboxNotEnabledForRESTAPI or MailboxNotSupportedForRESTAPI
    • Error message: “REST API is not yet supported for this mailbox.
like image 154
Robert Avatar answered Nov 09 '22 20:11

Robert


Step 1 :

Click the Below Link :

https://oauthplay.azurewebsites.net/?code=M657b8bab-e543-f849-134c-0a2f85179a67&state=17661047-2a14-4c90-9edd-0119f841b559

Step 2:

enter image description here

Step 3 :

enter image description here

Step 4 :

enter image description here

Step 5 :

enter image description here

like image 24
Saravana Kumar Avatar answered Nov 09 '22 22:11

Saravana Kumar