OneDrive / onedrive-sdk-csharp

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

feature request: support access to special folder "camera roll" #144

Closed tipa closed 8 years ago

tipa commented 8 years ago

Currently it seems only the "AppRoot" special folder is supported. Something like this would be great: OneDriveClient.Drive.Special.CameraRoll.(...)

cdmayer commented 8 years ago

Fixed in #146. You may need to download the new code from Github as it won't be on Nuget right away.

tipa commented 8 years ago

Is there an ETA of a new NuGet package? I would wait if it was some more days but I would get the GitHub code if there is no date in sight...

cdmayer commented 8 years ago

Not currently. Could be a couple weeks at this point.

tipa commented 8 years ago

I saw the new NuGet package v1.2.0 today but I am surprised that this small fix isnt included. Or did I miss something?

cdmayer commented 8 years ago

Sorry for the delay. This has been fixed in V2.0 for a while now. Just do:

var cameraRoll =  await client.Drive.Special.CameraRoll.Request().GetAsync();
tipa commented 8 years ago

I am using version 2.0.2 for UWP and CameraRoll or other special folders seem not to be available. unbenannt.

I currently have to use the following workaround: var request = OneDriveClient.Drive.Special.CameraRoll.Request().Select("name,parentReference"); request = new ItemRequest(request.RequestUrl.Replace("root", "special/cameraroll"), request.Client, request.QueryOptions);

cdmayer commented 8 years ago

Apologies, you are correct. The code is present, but was not added to the solution as a file to be compiled, so the methods are not available (as you pointed out). I will get a PR up today to fix this. Sorry about that!

tipa commented 8 years ago

great to hear! when will it be on nuget?

cdmayer commented 8 years ago

Fixed in #182, nuget here: https://www.nuget.org/packages/Microsoft.OneDriveSDK/2.0.3