Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.41 KB

File metadata and controls

36 lines (28 loc) · 1.41 KB

Signhost client library

join gitter chat Build status 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 and APIKey. You can request a APPKey for signhost at ondertekenen.nl.

var client = new SignHostApiClient(new SignHostApiClientSettings("AppName appkey", "apikey"));

var transaction = await client.CreateTransaction(new Transaction
{
	Signers = new List<Signer>
	{
		new Signer
		{
			Email = "john.doe@example.com",
			ScribbleName = "John Doe",
			SignRequestMessage = "Could you please sign this document?"
		}
	}
});

await client.AddOrReplaceFileToTansaction("PathToFile",    transaction.Id, "First document");
await client.AddOrReplaceFileToTansaction("PathOtherFile", transaction.Id, "General agreement");

/* When everything is setup we can start the transaction flow */
await client.StartTransaction(transaction.Id);

Get it on NuGet:

PM> Install-Package SignhostClientLibrary