public static void Main(string[] args) { // Create new esl client with api token and base url EslClient client = new EslClient(apiToken, baseUrl); FileInfo file = new FileInfo(Directory.GetCurrentDirectory() + "/src/document.pdf"); DocumentPackage package = PackageBuilder.NewPackageNamed("C# Package " + DateTime.Now) .DescribedAs("This is a new package") .WithSigner(SignerBuilder.NewSignerWithEmail("*****@*****.**") .WithFirstName("John") .WithLastName("Smith")) .WithDocument(DocumentBuilder.NewDocumentNamed("My Document") .FromFile(file.FullName) .WithSignature(SignatureBuilder.SignatureFor("*****@*****.**") .OnPage(0) .AtPosition(500, 100))) .Build(); PackageId id = client.CreatePackage(package); SigningStatus status = client.GetSigningStatus(id, null, null); Console.WriteLine("Status after creation = " + status); client.SendPackage(id); Console.WriteLine("Package {0} was sent", id.Id); status = client.GetSigningStatus(id, null, null); Console.WriteLine("Status after sending out package = " + status); }