错误“无法检索该用户帐户的OneDriveForBusiness."使用Graph API访问Microsoft OneNote时 [英] Error "The OneDriveForBusiness for this user account cannot be retrieved." when accessing Microsoft OneNote with Graph API

查看:56
本文介绍了错误“无法检索该用户帐户的OneDriveForBusiness."使用Graph API访问Microsoft OneNote时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发出以下REST GET请求: https://graph.microsoft.com/v1.0/me/onenote/notebooks

I make the following REST GET request: https://graph.microsoft.com/v1.0/me/onenote/notebooks

我收到以下答复:

{
    "error": {
        "code": "30108",
        "message": "The OneDriveForBusiness for this user account cannot be retrieved.",
        "innerError": {
            "request-id": "25926552-3157-483a-bbcd-41a7105cd531",
            "date": "2017-07-22T18:46:07"
        }
    }
}

我没有One Drive for Business帐户.我真的需要一个人来访问OneNote API吗?

I do not have a One Drive For Business account. Do I really need one to access the OneNote API?

谢谢.

推荐答案

是.为了使用API​​(访问OneNote数据),您必须拥有OneDrive(无论是个人/消费者还是企业/Office 365)-因为OneNote云数据实际上存储在OneDrive/SharePoint中.如果您拥有Office 365帐户,则可以尝试转到 https://portal.office.com ,然后单击左侧的华夫饼"按钮,然后单击OneDrive,这将创建您自己的个人OneDrive for Business.

Yes. In order to use the API (to access OneNote data), you must have a OneDrive (whether personal/consumer or business/Office 365) - since the OneNote cloud data is actually stored in OneDrive/SharePoint. If you have an Office 365 account, you can try going to https://portal.office.com and then click in the left-hand "waffle" button, and click OneDrive which should create your own personal OneDrive for Business.

请查看 https://developer.microsoft.com/zh-cn/graph/docs/api-reference/v1.0/resources/onenote 了解更多详细信息.

Please take a look at https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/onenote for more details.

此外,如果您只是尝试使用API​​,则可以使用图形浏览器.它具有一些已保存/示例查询,您可以尝试. (在示例查询"下,单击显示更多示例,然后切换 OneNote 开关).

Also, if you are just trying out the API you could use Graph Explorer. It has some saved/sample queries that you can try. (Under Sample Queries, click show more samples and toggle the OneNote switch).

希望这会有所帮助,

这篇关于错误“无法检索该用户帐户的OneDriveForBusiness."使用Graph API访问Microsoft OneNote时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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