根据Microsoft Graph的文档,在我的OneDrive中下载文件内容的接口为:
/beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6/content 然而,它正在返回
Failure - Status Code 0,
{
"isTrusted": true
}如果我只是这样做
/beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6它返回正确的文件元数据-这意味着该文件存在,因此任何线索都不能解释为什么Graph无法获取内容
发布于 2018-08-21 17:44:20
您可以使用GET /drives/{drive-id}/items/{item-id}/content
参考:https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_get_content
如果您正在使用Dotnet SDK for Graph,您可以使用
graphServiceClient.Me.Drive.Root.ItemWithPath(itemPath).Content.Request().GetAsync();https://stackoverflow.com/questions/51137121
复制相似问题