Assently.Client 6.0.5

Prefix Reserved
dotnet add package Assently.Client --version 6.0.5
                    
NuGet\Install-Package Assently.Client -Version 6.0.5
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Assently.Client" Version="6.0.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Assently.Client" Version="6.0.5" />
                    
Directory.Packages.props
<PackageReference Include="Assently.Client" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Assently.Client --version 6.0.5
                    
#r "nuget: Assently.Client, 6.0.5"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Assently.Client@6.0.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Assently.Client&version=6.0.5
                    
Install as a Cake Addin
#tool nuget:?package=Assently.Client&version=6.0.5
                    
Install as a Cake Tool

Assently.Client

Send documents for e-signing with the Assently e-sign API v2: electronic ID, SMS and touch signatures.

API documentation: https://app.assently.com/api/v2

Install

dotnet add package Assently.Client

The package supports .NET Framework 4.5.2 and later, and .NET Standard 2.0, for example .NET 8 and later.

Create and send a case

Get the API key and the API secret for an agent in Assently e-sign.

using Assently.Client;
using Assently.Client.Models;
using Assently.Client.Models.Events;

var client = new AssentlyClient("https://app.assently.com", apiKey, apiSecret);

var caseId = Guid.NewGuid();
var createCase = new CreateCaseModel { Id = caseId, Name = "Employment contract" };
createCase.AllowedSignatureTypes.Add(SignatureType.ElectronicId);
createCase.SendSignRequestEmailToParties = true;
createCase.Parties.Add(new PartyModel { Name = "Test Person", EmailAddress = "person@example.com" });
createCase.Documents.Add("contract.pdf");
createCase.EventCallback = new CaseEventSubscription("https://example.com/assently/callback", CaseEvent.Finished);

client.CreateCase(createCase);
client.SendCase(caseId);

To use a sub account, give its ID as the fourth constructor argument.

Dependency injection

Inject IAssentlyClient. From version 6.0.5, one AssentlyClient can be used from several threads at the same time, so you can register it as a singleton. In older versions, register it as transient.

services.AddSingleton<IAssentlyClient>(_ => new AssentlyClient("https://app.assently.com", apiKey, apiSecret));

New members can be added to IAssentlyClient in minor versions. If you implement the interface in your own class, for example a logging decorator, add the new members when you update the package.

Receive case events

Assently sends a POST request to the EventCallback URL when an event occurs. Read the request body with CallbackHelper:

CaseEventModel caseEvent = CallbackHelper.BindCaseEvent(requestBody);
if (caseEvent.Event == CaseEvent.Finished)
{
    var signedCase = client.GetCase(caseEvent.Model.Id);
    client.GetDocumentData(signedCase.Id, signedCase.Documents[0].Id, "signed.pdf");
}

New values from the API

The API can add enum values, for example a new case event or case status, before you update the client. The client reads such a value as a number that is not a named member of the enum, and the rest of the response is read as usual. If you send a model with such a value back, for example with UpdateCase or as a FindCases filter, the client throws a JsonSerializationException before it sends the request. Update Assently.Client to handle the new value.

Support

Contact Assently support, or see the API documentation at https://app.assently.com/api/v2 or https://developer.assently.com/v2.0/docs/getting-started.

License

Assently.Client is licensed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.5 0 11/25/2026
6.0.4 8,916 10/28/2022 6.0.4 is deprecated because it has critical bugs.
6.0.3 104,204 4/28/2022 6.0.3 is deprecated because it has critical bugs.
6.0.2 17,643 2/25/2022 6.0.2 is deprecated because it has critical bugs.
6.0.1 16,111 5/6/2021 6.0.1 is deprecated because it has critical bugs.
6.0.0 1,493 3/18/2021 6.0.0 is deprecated because it has critical bugs.
5.0.0 5,476 1/13/2021 5.0.0 is deprecated because it has critical bugs.
4.9.4 16,265 4/2/2020 4.9.4 is deprecated because it has critical bugs.
4.9.3 2,836 12/11/2019 4.9.3 is deprecated because it has critical bugs.
4.9.2 2,252 10/10/2019 4.9.2 is deprecated because it has critical bugs.
4.9.1 2,048 9/11/2019 4.9.1 is deprecated because it has critical bugs.
4.9.0 2,314 6/11/2019 4.9.0 is deprecated because it has critical bugs.
4.8.0 1,550 3/8/2019 4.8.0 is deprecated because it has critical bugs.
4.7.2 2,888 1/22/2019 4.7.2 is deprecated because it has critical bugs.
4.7.1 4,541 10/11/2018 4.7.1 is deprecated because it has critical bugs.
4.7.0 1,965 9/26/2018 4.7.0 is deprecated because it has critical bugs.
4.6.1 1,747 8/20/2018 4.6.1 is deprecated because it has critical bugs.
4.6.0 2,033 6/28/2018 4.6.0 is deprecated because it has critical bugs.
4.5.0 2,089 6/5/2018 4.5.0 is deprecated because it has critical bugs.
4.4.0 2,493 4/10/2018 4.4.0 is deprecated because it has critical bugs.
Loading failed

- Fix: GET requests no longer send a Content-Type header. On .NET Core and .NET 5 and later, that header also added "Content-Length: 0", and load balancers with strict HTTP checks rejected the request with HTTP 400.
- Fix: an enum value that this version does not know, for example a new case status, no longer makes GetCase, FindCases, FindTemplates or CallbackHelper.BindCaseEvent throw. The value is read as a number that is not a named member of the enum. If you send it back, for example with UpdateCase or as a FindCases filter, the client throws before it sends the request.
- Fix: you can use one AssentlyClient from several threads at the same time, for example as a singleton in dependency injection. Before, parallel calls failed with "WebClient does not support concurrent I/O operations".
- The User-Agent header now also names the .NET runtime, for example ".NET 8.0.11".
- The package now has a README, complete XML documentation and embedded debug symbols, so stack traces from the client show file and line numbers.
- The package is licensed under the MIT license. Earlier versions had an empty license file.
- Requires Newtonsoft.Json 13.0.4 or later.
- netstandard2.0: no longer depends on the System.Net.Http, System.Net.WebHeaderCollection and System.Collections.Specialized packages.
- If you update from 6.0.3 or older: CaseEvent has the values ApprovalAdded, RejectionAdded and FinalApproval (added in 6.0.4). Version 6.0.3 throws when it receives them.