Skip to content

Repository files navigation

Signhost client library

join gitter chatNuget package

This is a client library in c# to demonstrate the usage of the Signhost API using .NET. You will need a valid APPKey. You can request an APPKey here.

Install

Get it on NuGet:

PM> Install-Package EntrustSignhostClientLibrary

Documentation

For full API documentation, please visit evidos.github.io.

Example code

The following code is an example of how to create and start a sign transaction with two documents.

varsettings=newSignhostApiClientSettings("AppName appkey","apikey or usertoken");varclient=newSignhostApiClient(settings);vartransaction=awaitclient.CreateTransactionAsync(newCreateTransactionRequest{Signers=newList<CreateSignerRequest>{newCreateSignerRequest{Email="john.doe@example.com",SignRequestMessage="Could you please sign this document?",SendSignRequest=true,/* * The verifications listed here are executed in order. * Your last verification _must_ be one of the following: * - PhoneNumberVerification * - ScribbleVerification * - ConsentVerification */Verifications=newList<IVerification>{newPhoneNumberVerification{Number="+3161234567890",},newScribbleVerification{ScribbleName="John Doe",RequireHandsignature=true,},},},},});awaitclient.AddOrReplaceFileToTransactionAsync("PathToFile",transaction.Id,"First document",newFileUploadOptions());awaitclient.AddOrReplaceFileToTransactionAsync("PathOtherFile",transaction.Id,"General agreement",newFileUploadOptions());/* When everything is setup we can start the transaction flow. */awaitclient.StartTransactionAsync(transaction.Id);

Migration Guides

Please refer to the migration notes in our migration guides.

About

This is a client library in c# to demonstrate the usage of the signhost api using .net

Resources

Stars

3 stars

Watchers

12 watching

Forks

Releases

Packages

Used by

Contributors

Languages