Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WB 19] DotNet integration with eSignLive

$
0
0
Hi

I want to integrate document signing into my application and are taking a look at esignLive.

They have a .NET component but besides loading the ,NET dll's into my webdev application I have no idea what I am doing.

There sample code in C# look like this:

PRIVATE static string apiUrl = "[sandbox.esignlive.com];;
// USE [apps.esignlive.com] FOR PRODUCTION
PRIVATE static string apiKey = "YOUR_API_KEY";
EslClient EslClient = new EslClient(apiKey, apiUrl);
FileStream fs = File.OpenRead("PATH_TO_YOUR_PDF");
DocumentPackage superDuperPackage = PackageBuilder
.NewPackageNamed("Test Package .NET")
.WithSettings(DocumentPackageSettingsBuilder.NewDocumentPackageSettings())
.WithSigner(SignerBuilder.NewSignerWithEmail("signer.email@example.com")
.WithFirstName("Signer First Name")
.WithLastName("Signer Last Name")
.WithCustomId("Signer"))
.WithSigner(SignerBuilder.NewSignerWithEmail("your.email@example.com")
.WithFirstName("Your First Name")
.WithLastName("Your Last Name"))
.WithDocument(DocumentBuilder.NewDocumentNamed("sampleAgreement")
.FromStream(fs, DocumentType.PDF)
.WithSignature(SignatureBuilder
.SignatureFor("signer.email@example.com")
.OnPage(0)
.AtPosition(175, 165))
.WithSignature(SignatureBuilder
.SignatureFor("your.email@example.com")
.OnPage(0)
.AtPosition(550, 165))
)

.Build();

PackageId PackageId = EslClient.CreatePackage(superDuperPackage);
EslClient.SendPackage(PackageId);

In WebDev I have these properties under the .NET Assemblies.

Image was attached.

Can anybody help with creating the variable so that I can change the properties of:

NewPackageNamed
Withsettings
WithSigner

etc. etc.

Off course if somebody can suggest something better, faster, easier, cheaper to get and control the different signatures on documents it will also help.

Thanks in advance


Ericus Steyn
[attachment 2207 Capture.PNG]

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>