标题X-DocuSign-Authentication如何用于REST和SOAP?

时间:2014-02-25 23:02:04

标签: rest soap docusignapi

用于REST和SOAP时,使用标题“X-DocuSign-Authentication”有哪些选项和格式?

1 个答案:

答案 0 :(得分:8)

X-DocuSign-Authentication [HTTP HEADER]

  • 最佳做法:在api身份验证标题中使​​用模糊的用户名和密码
  • 定义:代表权利发送(API)是SOBO。

给出以下值:

  • 用户名== API服务用户== “service.account.user.member@domain.com”== USERID “cdcd3fc7-2b3c-40d4-98ed-ff90add317ca”
  • 密码==“yourpassword”= EncryptedAPIPassword == “/ A5hpPhSczID + JNEKZbg5mYf7 + 7 =”
  • SOBOUser ==“user.member@domain.com”== USERID “eacd3fc7-2b3c-40d4-98ed-ff90add317ff“
  • Integratorkey ==“YDMN-339fa93c-fcf0-4390-8141-2e0f071ffa2e”

您的代码需要生成HTTP标头的http标头值    X-DocuSign-认证:

XML格式:

<强> NON-SOBO

<DocuSignCredentials><Username>cdcd3fc7-2b3c-40d4-98ed-ff90add317ca</Username><Password>/A5hpPhSczID+JNEKZbg5mYf7+7=</Password><IntegratorKey>YDMN-339fa93c-fcf0-4390-8141-2e0f071ffa2e </IntegratorKey></DocuSignCredentials>

<强> SOBO

<DocuSignCredentials><Username>cdcd3fc7-2b3c-40d4-98ed-ff90add317ca</Username><Password>/A5hpPhSczID+JNEKZbg5mYf7+7=</Password><IntegratorKey>YDMN-339fa93c-fcf0-4390-8141-2e0f071ffa2e</IntegratorKey><SendOnBehalfOf>eacd3fc7-2b3c-40d4-98ed-ff90add317ff </SendOnBehalfOf></DocuSignCredentials>

JSON格式:

<强> NON-SOBO

{"Username":"cdcd3fc7-2b3c-40d4-98ed-ff90add317ca","Password":"/A5hpPhSczID+JNEKZbg5mYf7+7=","IntegratorKey":"YDMN-339fa93c-fcf0-4390-8141-2e0f071ffa2e"}

SOBO

{"Username":"cdcd3fc7-2b3c-40d4-98ed-ff90add317ca","Password":"/A5hpPhSczID+JNEKZbg5mYf7+7=","SendOnBehalfOf":"eacd3fc7-2b3c-40d4-98ed-ff90add317ff","IntegratorKey":"YDMN-339fa93c-fcf0-4390-8141-2e0f071ffa2e"}

API服务用户 服务帐户不需要是管理员,除非您正在创建用户,但必须具有SOBO和帐户范围权限。

SOBO用户 SOBO用户不需要是管理员,但必须具有发送权限并成为服务帐户用户帐户中的用户。只有当您正在执行此操作时才使用此用户ID,例如发送或排除。

Here is a link to the full sized Infographic I created to assist with this shown below

X-DocuSign-Authentication Inforgraphic