Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

License

Notifications You must be signed in to change notification settings

Evidos/SignhostClientLibrary

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

237 Commits
237 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signhost client library

join gitter chat Nuget 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.

var settings = new SignhostApiClientSettings(
	"AppName appkey",
	"apikey or usertoken");

var client = new SignhostApiClient(settings);

var transaction = await client.CreateTransactionAsync(new CreateTransactionRequest {
	Signers = new List<CreateSignerRequest> {
		new CreateSignerRequest {
			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      = new List<IVerification> {
				new PhoneNumberVerification {
					Number = "+3161234567890",
				},
				new ScribbleVerification {
					ScribbleName           = "John Doe",
					RequireHandsignature   = true,
				},
			},
		},
	},
});

await client.AddOrReplaceFileToTransactionAsync(
	"PathToFile",
	transaction.Id,
	"First document",
	new FileUploadOptions());

await client.AddOrReplaceFileToTransactionAsync(
	"PathOtherFile",
	transaction.Id,
	"General agreement",
	new FileUploadOptions());

/* When everything is setup we can start the transaction flow. */
await client.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

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 11

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.