/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****