如果您正在使用Graph API SDK,则可以使用
Users["{id}"]
得到
GraphServiceUsers
请求生成器。
第一个请求
https://graph.microsoft.com/v1.0/users/<specificUsersGuid>/drive/root/children
可以写成
var driveItemChildrenCollectionPage = await graphClient.Users["specificUsersGuid"].Drive.Root.Children.Request().GetAsync();
第二个请求
https://graph.microsoft.com/v1.0/users/<specificUserGuid>/drive/items/<driveId>/children
作为
var result = await client.Users["specificUsersGuid"].Drive.Items["driveItemId"].Children.Request().GetAsync();