I am new with trying to use the DocuSign API. I am having issues trying to run a sample with the code that is available on Git. I have set all properties and I am unable to run any of the samples. When trying to use JWT I get the following exception:
Error while requesting server, received a non successful
HTTP code Completed with response Body:
{"error":"invalid_grant"}
this.Host = (host != null) ? host : "https://demo.docusign.net/restapi";
this.Username = (username != null) ? username : {my acct email here};
this.Password = (password != null) ? password : {my acct pswd here};
this.IntegratorKey = (integratorKey != null) ? integratorKey : {my integrator key here};
this.RecipientEmail = (recipientEmail != null) ? recipientEmail : {recipient email here};
this.RecipientName = (recipientName != null) ? recipientName : {recipient name here};
this.TemplateRoleName = (templateRoleName != null) ? templateRoleName : "bob"; - DEFALTED NOT ME
this.TemplateId = (templateId != null) ? templateId : "cf2a46c2-8d6e-4258-9d62-752547b1a419"; - DEFAULTED NOT ME
this.ReturnUrl = (returnUrl != null) ? returnUrl : "https://www.docusign.com/devcenter";
this.UserId = {My acct GUID HERE};
this.OAuthBasePath = "account-d.docusign.com";
this.PrivateKeyFilename = "../../../docs/private.pem";
this.ExpiresInHours = 1;
this.EnvelopeIdsList = new List<string>();
this.IntegratorKeyNoConsent = "66750331-ee4b-4ab8-b8ee-6c1a413a6096"; - DEFAULTED NOT ME
this.PrivateKeyNoConsentFilename = "../../../docs/privateKeyConsentReq.pem";
Any help would be grateful! Thanks in advance