问题
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.
For reference document i am using this document : https://graph.microsoft.io/en-us/docs/api-reference/beta/resources/excel
here i have 2 questions:
Que 1:
https://graph.microsoft.com/{version}/me/drive/items/{id}/workbook/
for this link i am using v1.0 for {version} and for {id} i am using "7FA7C48C26BC284B!114" this. it is Excel workbook id.
is it correct?
Que 2:
i see in the example from the same page /{version}/me/drive/items/01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN/workbook/
this long id: "01CYZLFJGUJ7JHBSZDFZFL25KSZGQTVAUN"
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.
回答1:
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.
来源:https://stackoverflow.com/questions/42408512/microsoft-graph-api-resource-not-found-when-access-workbook-of-onedrive