访问onedrive的工作簿时找不到Microsoft Graph API资源 [英] Microsoft Graph API Resource not found when access workbook of onedrive
问题描述
我正在构建一个通过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
这里有两个问题:
Que 1:
https://graph.microsoft.com/ {version} / me / drive / items / {id} / workbook /
https://graph.microsoft.com/{version}/me/drive/items/{id}/workbook/
对于此链接,我使用v1.0 for {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.
是否正确?
Que 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?
请帮助我解决这个问题。
please help me to solve this.
推荐答案
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屋!