gpt4 book ai didi

c# - 使用 DocuSign REST API 身份验证登录

转载 作者:行者123 更新时间:2023-11-30 15:28:33 25 4
gpt4 key购买 nike

/我需要传递头部信息/ 标题{ "X-DocuSign-Authentication": "{\"Username\":\"abc@gmail.com\",\"Password\":\"mypassword\",\"IntegratorKey\":\"the-super-长键\"}" } /***如何将用户名、密码和 integratorKey 传递给 docusign**/ '我在 docusign 网站上测试了参数,它们有效。

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", "abc@gmail.com")
oRequest.Headers.Add("Password", "mypassword")
oRequest.Headers.Add("IntegratorKey", "my-integrator-key")


Dim oResponse As HttpWebResponse = oRequest.GetResponse '*****FAILS****

最佳答案

据官网Authentication :

oRequest.Headers.Add("X-DocuSign-Authentication",
string.Format(@"<DocuSignCredentials>
<Username>{0}</Username>
<Password>{1}</Password>
<IntegratorKey>{2}</IntegratorKey>
</DocuSignCredentials>",
"abc@gmail.com",
"mypassword",
"my-integrator-key"));

我无法测试,因为我没有有效的帐户!

关于c# - 使用 DocuSign REST API 身份验证登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25628319/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com