访问 onedrive 工作簿时未找到 Microsoft Graph API 资源 [英] Microsoft Graph API Resource not found when access workbook of onedrive

查看:35
本文介绍了访问 onedrive 工作簿时未找到 Microsoft Graph API 资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,该应用程序通过 Graph API 连接到个人 Microsoft 帐户的 OneDrive.我的目标是制作一个可以访问 ondrive 工作簿内容的应用程序.

I'm building a application that connects to OneDrive for personal Microsoft account via the Graph API.My goal is to make a application from that i can access ondrive workbook content.

作为参考文档,我正在使用此文档:https://graph.microsoft.io/en-us/docs/api-reference/beta/resources/excel

For reference document i am using this document : https://graph.microsoft.io/en-us/docs/api-reference/beta/resources/excel

这里我有两个问题:

问题 1:

https://graph.microsoft.com/{version}/me/drive/items/{id}/workbook/

https://graph.microsoft.com/{version}/me/drive/items/{id}/workbook/

对于此链接,我将 v1.0 用于 {version}对于{id},我使用的是7FA7C48C26BC284B!114".它是 Excel 工作簿 ID.

for this link i am using v1.0 for {version} and for {id} i am using "7FA7C48C26BC284B!114" this. it is Excel workbook id.

正确吗?

问题 2:

我在同一页面的示例中看到/{version}/me/drive/items/01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN/workbook/

i see in the example from the same page /{version}/me/drive/items/01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN/workbook/

这个长id:01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN"

this long id: "01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN"

但是我没有从任何回复中得到这么长的 ID.是否是追索权问题而非根源错误?

but i did not get this much long id from any response. is it the issue for recourse not fount error?

请帮我解决这个问题.

推荐答案

Excel REST API 目前不适用于消费者/个人帐户.我们正在努力在不久的将来实现这一目标.同时,它可用于 OneDrive for Business 和 SharePoint 中的文件.

Excel REST API is currently not available for consumer/personal accounts. We are working on enabling this in the near future. In the meantime it is available for files in OneDrive for Business and SharePoint.

这篇关于访问 onedrive 工作簿时未找到 Microsoft Graph API 资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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