コード例 #1
0
ファイル: Program.cs プロジェクト: alexmac05/hs_csharp
        static void sendSignatureRequest(HelloSign.Client client)
        {
            Console.WriteLine("4 - endTemplateSignatureRequest******************************************************* BEGIN");

            //var account = client.GetAccount();
            //Console.WriteLine("My Account ID is: " + account.AccountId);
            try
            {
                var request = new SignatureRequest();
                request.Title   = "C# sending a signature request";
                request.Subject = "C# send signature Request";
                request.Message = "Please sign this NDA and then we can discuss more. Let me know if you have questions";
                request.AddSigner("*****@*****.**", "Jack");
                request.AddSigner("*****@*****.**", "Jill");
                request.TestMode = true;
                request.AddFile("C:\\Users\\IEUser\\Downloads\\NDA10.pdf");
                var response = client.SendSignatureRequest(request);
                Console.WriteLine(response.ToString());
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + " " + ex.StackTrace);
            }


            Console.WriteLine("3 - Send signature_request*************************************************************** END");
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: alexmac05/hs_csharp
 static void sendTemplateSignatureRequest(HelloSign.Client client)
 {
     try
     {
         Console.WriteLine("4 - TemplateSignatureRequest******************************************************* BEGIN");
         //Two roles - Consultant and Canidate
         var requestTemplate = new HelloSign.TemplateSignatureRequest();
         requestTemplate.AddTemplate("54cb9e7b076df6e9a78fc2c523aae4d78a25284d");
         requestTemplate.RequesterEmailAddress = "*****@*****.**";
         requestTemplate.TestMode = true;
         requestTemplate.Signers.Add(new Signer("*****@*****.**", "*****@*****.**", role: "canidate"));
         requestTemplate.Signers.Add(new Signer("*****@*****.**", "*****@*****.**", role: "consultant"));
         requestTemplate.AddCustomField("firstname", "TEST");
         var response = client.SendSignatureRequest(requestTemplate);
         Console.WriteLine(response);
         Console.WriteLine("4 - TemplateSignatureRequest******************************************************* END");
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.StackTrace + " " + ex.Message);
     }
 }