Skip to content

Commit

Permalink
v3.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Willer committed Feb 8, 2019
1 parent fc44cb8 commit 4d718a7
Showing 7 changed files with 71 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Box.V2.Core/Box.V2.Core.csproj
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@
<PropertyGroup>
<Description>Box.V2 for .Net Core</Description>
<AssemblyTitle>Box.V2.Core</AssemblyTitle>
<Version>3.11.0</Version>
<Version>3.12.0</Version>
<Authors>Box, Inc.</Authors>
<Owners>Box, Inc.</Owners>
<PackageProjectUrl>https://github.com/box/box-windows-sdk-v2</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageDescription>Windows SDK for v2 of the Box API. The SDK is built for .NET Core and includes JWTAuth support.</PackageDescription>
<PackageReleaseNotes>Fixed renaming file on version upload, setting and reading Group properties, and clearing shared link expiration.</PackageReleaseNotes>
<Copyright>Copyright 2018</Copyright>
<PackageReleaseNotes>See https://github.com/box/box-windows-sdk-v2/blob/master/CHANGELOG.md#3120</PackageReleaseNotes>
<Copyright>Copyright 2019</Copyright>
<PackageTags>Box;V2;SDK;Platform;Enterprise;Collaboration;Storage;File Management</PackageTags>
<TargetFramework>netstandard1.6</TargetFramework>
<AssemblyName>Box.V2.Core</AssemblyName>
6 changes: 3 additions & 3 deletions Box.V2/Box.V2.nuspec
Original file line number Diff line number Diff line change
@@ -2,15 +2,15 @@
<package >
<metadata>
<id>Box.V2</id>
<version>3.11.0</version>
<version>3.12.0</version>
<title>Box Windows SDK V2</title>
<authors>Box, Inc.</authors>
<owners>Box, Inc.</owners>
<projectUrl>https://github.com/box/box-windows-sdk-v2</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>Windows SDK for v2 of the Box API. The SDK is targeting .NET Framework 4.5</description>
<releaseNotes>Fixed renaming file on version upload, setting and reading Group properties, and clearing shared link expiration.</releaseNotes>
<copyright>Copyright 2018</copyright>
<releaseNotes>See https://github.com/box/box-windows-sdk-v2/blob/master/CHANGELOG.md#3120</releaseNotes>
<copyright>Copyright 2019</copyright>
<tags>Box V2 SDK Platform Enterprise Collaboration Storage File Management</tags>
</metadata>
</package>
2 changes: 1 addition & 1 deletion Box.V2/Utility/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ internal class AssemblyInfo
public const string AssemblyTitle = "Box.V2";
public const string AssemblyProduct = "Box.V2";

public const string NuGetVersion = "3.11.0";
public const string NuGetVersion = "3.12.0";
public const string AssemblyVersion = "1.0.0.0";
public const string AssemblyFileVersion = "1.0.0.0";
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 3.12.0

- Added `client.FilesManager.GetCollaborationsCollectionAsync()` and deprecated
`client.FilesManager.GetCollaborationsAsync()` to enable paging through the entire
collection of collaborations on a file
- Added `client.WebLinksManager.CopyAsync()`, `client.WebLinksManager.CreateSharedLinkAsync()`,
and `client.WebLinksManager.DeleteSharedLinkAsync()`
- Added `client.UsersManager.GetUserAvatarAsync()` for retrieving a user's avatar image

## 3.11.0

- Added support for reading and writing more Group fields
6 changes: 3 additions & 3 deletions docs/collaborations.md
Original file line number Diff line number Diff line change
@@ -100,13 +100,13 @@ Get the Collaborations on a File
--------------------------------

You can get the collection of collaborations on a file by calling
`FilesManager.GetCollaborationsAsync(string id, IEnumerable<string> fields = null)`
`FilesManager.GetCollaborationsCollectionAsync(string id, string marker = null, int? limit = null, IEnumerable<string> fields = null, bool autoPaginate = false)`
with the ID of the file.

```c#
string fileId = "98765";
BoxCollection<BoxCollaboration> collaborations = await client.FilesManager
.GetCollaborationsAsync(fileId);
BoxCollectionMarkerBasedV2<BoxCollaboration> collaborations = await client.FilesManager
.GetCollaborationsCollectionAsync(fileId);
```

Get Pending Collaborations
11 changes: 11 additions & 0 deletions docs/users.md
Original file line number Diff line number Diff line change
@@ -9,6 +9,7 @@ Users represent an individual's account on Box.

- [Get the Current User's Information](#get-the-current-users-information)
- [Get User's Information](#get-users-information)
- [Get User Avatar](#get-user-avatar)
- [Add New User](#add-new-user)
- [Add New App User](#add-new-app-user)
- [Update User](#update-user)
@@ -40,6 +41,16 @@ To get a user call `UsersManager.GetUserInformationAsync(string userId)` with th
BoxUser user = await client.UsersManager.GetUserInformationAsync(userId: "33333");
```

Get User Avatar
---------------

To retrieve the avatar image for a user, call
`UsersManager.GetUserAvatar(string userId)` with the ID of the user.

```c#
Stream imageStream = await client.UsersManager.GetUserAvatar(string userId);
```

Add New User
------------

42 changes: 41 additions & 1 deletion docs/web-links.md
Original file line number Diff line number Diff line change
@@ -13,6 +13,9 @@ and restore.
- [Get a Web Link's information](#get-a-web-links-information)
- [Update a Web Link](#update-a-web-link)
- [Delete a Web Link](#delete-a-web-link)
- [Copy a Web Link](#copy-a-web-link)
- [Create a Shared Link](#create-a-shared-link)
- [Remove a Shared Link](#remove-a-shared-link)

<!-- END doctoc generated TOC please keep comment here to allow auto update -->

@@ -66,4 +69,41 @@ with the ID of the web link object to delete.

```c#
await client.WebLinksManager.DeleteWebLinkAsync("11111");
```
```

Copy a Web Link
---------------

To make a copy of a web link, call `WebLinksManager.CopyAsync(string webLinkId, string destinationFolderId, IEnumerable<string> fields = null)` with the ID of the web link and the ID of the folder into which it should be copied.

```c#
BoxWebLink copiedLink = await client.WebLinksManager.CopyAsync("11111", "22222");
```

Create a Shared Link
--------------------

A shared link for a web link can be generated by calling
`WebLinksManager.CreateSharedLinkAsync(string id, BoxSharedLinkRequest sharedLinkRequest, IEnumerable<string> fields = null)`.

```c#
string webLinkId = "11111";
var sharedLinkParams = new BoxSharedLinkRequest()
{
Access = BoxSharedLinkAccessType.open
};
BoxWebLink link = client.WebLinksManager
.CreateSharedLinkAsync(webLinkId, sharedLinkParams);
string sharedLinkUrl = link.SharedLink.Url;
```

Remove a Shared Link
--------------------

To remove a shared link from a web link, call
`WebLinksManager.DeleteSharedLinkAsync(string id, IEnumerable<string> fields = null)`
with the ID of the web link.

```c#
BoxWebLink updatedLink = client.WebLinksManager.DeleteSharedLinkAsync("11111");
```

0 comments on commit 4d718a7

Please sign in to comment.