/I need to pass the header information/ header{ "X-DocuSign-Authentication": "{\"Username\":\"[email protected]\",\"Password\":\"mypassword\",\"IntegratorKey\":\"the-super-long-key\"}" } /***How do I pass the username, password, and integratorKey to docusign**/ 'I tested the parameters on the docusign site and they worked.
Dim sUrl As String = "https://demo.docusign.net/restapi/v1/login_information?api_password=true&include_account_id_guid=true&login_settings=all"
Dim oRequest As HttpWebRequest
oRequest = WebRequest.Create(sUrl)
oRequest.KeepAlive = False
oRequest.Headers.Add("Username", "[email protected]")
oRequest.Headers.Add("Password", "mypassword")
oRequest.Headers.Add("IntegratorKey", "my-integrator-key")
Dim oResponse As HttpWebResponse = oRequest.GetResponse '*****FAILS****
According to the official website Authentication:
oRequest.Headers.Add("X-DocuSign-Authentication",
string.Format(@"<DocuSignCredentials>
<Username>{0}</Username>
<Password>{1}</Password>
<IntegratorKey>{2}</IntegratorKey>
</DocuSignCredentials>",
"[email protected]",
"mypassword",
"my-integrator-key"));
I cant't test because I dont have a valid account!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With