我发出以下 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 然后单击左侧的waffle"按钮,然后单击 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/en-us/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,您可以使用 Graph Explorer.它有一些您可以尝试的已保存/示例查询.(在 Sample Queries 下,单击 show more samples 并切换 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).
希望这会有所帮助,