为什么选择 Microsoft Graph API
https://graph.microsoft.com/v1.0/me/drive/root/children('GraphTest.xlsx')/workbook/worksheets('Foglio1')/charts
抛出错误
{
"error": {
"code": "GeneralException",
"message": "There was an internal error while processing the request.",
"innerError": {
"request-id": "6b98e61b-2d11-4e16-8a9a-bc9568aeda10",
"date": "2018-04-14T04:56:21"
}
}
}
我确定该文件存在并且它是正确的,因为这个调用
https://graph.microsoft.com/v1.0/me/drive/root/children('GraphTest.xlsx')/workbook/worksheets('Foglio1')/names
作品
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('db444526-887f-48f6-80f9-4e260297921e')/drive/root/children('GraphTest.xlsx')/workbook/worksheets('Foglio1')/names",
"value": [
{
"@odata.id": "/users('db444526-887f-48f6-80f9-4e260297921e')/drive/root/children('GraphTest.xlsx')/workbook/worksheets(%27%7B00000000-0001-0000-0000-000000000000%7D%27)/names(%27table1%27)",
"comment": "",
"name": "table1",
"scope": "Workbook",
"type": "Range",
"value": "Foglio1!$B$2:$C$5",
"visible": true
}
]
}
并且图表存在,因为如果我在 Excel Desktop 或 Excel Online 上打开文件,图表就在那里。
您可以看到工作表的屏幕截图: