OneDrive / onedrive-sdk-csharp

OneDrive SDK for C#! https://dev.onedrive.com
Other
294 stars 143 forks source link

Invalid request for Drive.Items.Request.GetAsync() #175

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi, I believe this is a bug since the return is a collection (which i believe is the children of the "root" item.

so OneDriveClient.Drive.Items.Request.GetAsync() should be equivalent to OneDriveClient.Drive.Root.Children.Request.GetAsync()

However when I execute OneDriveClient.Drive.Items.Request.GetAsync() i get "Invalid Request"

cdmayer commented 8 years ago

Those requests are not equivalent. Drive.Items uses Item.Id as a key, as opposed to path. You can learn more here.