jhoerr / box-csharp-sdk-v2

A C# client for the Box API (v2).
http://developers.box.com/docs/
11 stars 15 forks source link

Shared Items - Feature Missing #16

Open mascon opened 11 years ago

mascon commented 11 years ago

Box have extended the API to be able to retrieve Shared Items.

No rush for me but for the fullness of the SDK might want to added it at some point.

http://developers.box.com/docs/#shared-items

jhoerr commented 11 years ago

The SDK does support shared links, but it doesn't yet support password-protected ones.

Have a look at Client.GetFile(id, sharedLinkUrl, fields, etag)

mascon commented 11 years ago

Thanks just saw the updated document on box and jumped to conclusions

Sent from my BlackBerry® wireless device

-----Original Message----- From: John Hoerr notifications@github.com Date: Wed, 16 Jan 2013 10:26:47 To: jhoerr/box-csharp-sdk-v2box-csharp-sdk-v2@noreply.github.com Reply-To: jhoerr/box-csharp-sdk-v2 reply@reply.github.com Cc: masconimom@andimgone.com Subject: Re: [box-csharp-sdk-v2] Shared Items - Feature Missing (#16)

The SDK does support shared links, but it doesn't yet support password-protected ones.

Have a look at Client.GetFile(id, sharedLinkUrl, fields, etag)


Reply to this email directly or view it on GitHub: https://github.com/jhoerr/box-csharp-sdk-v2/issues/16#issuecomment-12332531

jhoerr commented 11 years ago

Support for password-protected shared links is definitely new to me -- i'll need to add support for that.

rramteerath commented 11 years ago

Although the following in not really a bug it's a bit misleading... If you use the overloaded SharedLink constructor and pass in a null permissions object, this will be set to CanDownload = true, CanPreview = true. For an access of collaborators, this causes a bad request error. If you use the default constructor and set the permissions to null this works fine.

To keep the functionality consistent, the permissions should not be set if null is passed into the overloaded ctor.