В ресурсе DriveItem в документации упоминается свойство «content» для доступа к потоку найденного мною элемента OneDrive. Однако содержимое не возвращается в объекте JSON с конечной точкой me / drive / items / {item-id}. я что-то пропустил?
await this.context.msGraphClientFactory
.getClient().then(async (client: MSGraphClient):Promise<void> =>{
await client.api(`me/drive/items/{item-id}`).get().then(foundItem =>{
console.log(foundItem)
})
})
возвращает
@odata.context: ""
@microsoft.graph.downloadUrl: ""
eTag: ""
id: ""
lastModifiedDateTime: "2020-03-25T14:49:22Z"
name: ""
webUrl: ""
cTag: ""
size: 141
createdBy: {user: {…}}
lastModifiedBy: {user: {…}}
parentReference:
driveType:
file: {mimeType: "text/plain", hashes: {…}}
fileSystemInfo:
__proto__: Object