Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Login with DocuSign REST API Authentication

/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****
like image 756
Golden Lion Avatar asked Feb 02 '26 14:02

Golden Lion


1 Answers

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!

like image 159
Fals Avatar answered Feb 05 '26 03:02

Fals



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!