错误:{“代码":"MailboxNotEnabledForRESTAPI",“消息":“此邮箱尚不支持REST API." } [英] error : { "code": "MailboxNotEnabledForRESTAPI", "message": "REST API is not yet supported for this mailbox." }

查看:458
本文介绍了错误:{“代码":"MailboxNotEnabledForRESTAPI",“消息":“此邮箱尚不支持REST API." }的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是"outlook" api的新手.我想从"outlook帐户"中获取所有日历事件,联系人和邮件.

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

但是我使用"outlook"帐户无法获得适当的结果,但是使用"office365"帐户仍然可以正常工作

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

但是每次我使用Outlook帐户登录时,都会出现这样的错误.

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...

推荐答案

只是遇到了同样的问题,并找到了解释 Outlook Oauth沙箱中使用未启用的帐户时,确认相同的结果.

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.

从第一个链接

  • 由于在Outlook.com上为Outlook REST API启用邮箱的过程需要一段时间,因此您现有的Outlook.com帐户可能需要一段时间才能被启用.要测试您的应用程序访问已启用的Outlook.com邮箱上的数据,您可以通过发送电子邮件给outlookdev@microsoft.com来请求一个新的,已启用的Outlook.com开发人员预览帐户.
  • 如果您的应用访问Outlook.com邮箱数据,则应处理尚未为Outlook REST API启用用户邮箱的情况.在这种情况下,当您发出REST请求时,会出现类似以下的错误:
    • HTTP错误:404
    • 错误代码:MailboxNotEnabledForRESTAPI或MailboxNotSupportedForRESTAPI
    • 错误消息:此邮箱尚不支持REST API.
    • 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 outlookdev@microsoft.com.
    • 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.

      这篇关于错误:{“代码":"MailboxNotEnabledForRESTAPI",“消息":“此邮箱尚不支持REST API." }的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆