protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); templateRole tempRole = new templateRole(); tempRole.name = "jay"; tempRole.roleName = "admin"; tempRole.email = "*****@*****.**"; List <templateRole> tempList = new List <templateRole>(); tempList.Add(tempRole); envelopeDefinition data = new envelopeDefinition(); data.emailSubject = "Hello"; data.emailBlurb = "Hello"; data.status = signatureStatus.created; data.templateRoles = tempList; data.templateId = "62AF9A9C-0794-40E1-822F-5F070151D790"; string response = docusignMethods.EmbedSendingUX(data, "http://www.docusign.com"); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); #region Document Document document = new Document(); document.documentId = "1"; document.name = "test_document.pdf"; DocDetail docDetail = new DocDetail(); docDetail.document = document; #endregion #region RecipientCreation SignHere objSignHere = new SignHere(); objSignHere.xPosition = "100"; objSignHere.yPosition = "100"; objSignHere.documentId = "1"; objSignHere.pageNumber = "1"; SignHereTab objSignHereTab = new SignHereTab(); objSignHereTab.signHere = objSignHere; Tab objTab = new Tab(); objTab.signHereTabs = objSignHereTab; signer objSigner = new signer(); objSigner.recipientId = "1"; objSigner.name = "jay"; objSigner.email = "*****@*****.**"; objSigner.tabs = objTab; List <signer> signerList = new List <signer>(); signerList.Add(objSigner); Recipients recip = new Recipients(); recip.signers = signerList; #endregion envelopeDefinition data = new envelopeDefinition(); data.emailSubject = "Hello"; data.emailBlurb = "Hello"; data.status = signatureStatus.sent; data.documents = docDetail; data.recipients = recip; string response = docusignMethods.RequestSignatureFromDocument(@"C:\Users\jay\Desktop\test_document.pdf", data); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); string erroMessage = string.Empty; List <string> lst = docusignMethods.GetEnvelopeDocList("A3A5505351714444B9E34B515DF27D6D", true, @"C:\Users\jay\Desktop\DO", out erroMessage); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); string response = docusignMethods.GetDocusignEnvelopeInformation("A3A5505351714444B9E34B515DF27D6D"); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); string response = docusignMethods.GetEnvelopeStatus("08/02/2013 00:21", from_to_status.changed); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); string response = docusignMethods.EmbeddedDocusignConsoleView(); }
protected void Page_Load(object sender, EventArgs e) { DocusignAuth docusignObj = new DocusignAuth(); docusignObj.UserName = ConfigurationManager.AppSettings["Username"].ToString(); docusignObj.Password = ConfigurationManager.AppSettings["Password"].ToString(); docusignObj.IntegratorKey = ConfigurationManager.AppSettings["IntegratorKey"].ToString(); docusignObj.TemplateId = ConfigurationManager.AppSettings["TemplateId"].ToString(); docusignObj.Url = ConfigurationManager.AppSettings["Url"].ToString(); DocusignMethods docusignMethods = new DocusignMethods(docusignObj); templateRole tempRole = new templateRole(); tempRole.accessCode = "123"; tempRole.name = "jay"; tempRole.role = "admin"; tempRole.roleName = "admin"; tempRole.email = "*****@*****.**"; List <templateRole> tempList = new List <templateRole>(); tempList.Add(tempRole); envelopeDefinition data = new envelopeDefinition(); data.emailSubject = "Hello"; data.emailBlurb = "Hello"; data.status = signatureStatus.sent; data.templateRoles = tempList; data.templateId = "62AF9A9C-0794-40E1-822F-5F070151D790"; string resp = docusignMethods.RequestSignatureFromTemplate(data); }