Docusign distributorPassword或AppToken的模拟账户?

时间:2014-09-09 05:26:34

标签: docusignapi

有人可以告诉我如何获得模拟账户的distributorPassword或AppToken吗?

我正在尝试在Docusign REST界面中使用创建帐户调用(https://demo.docusign.net/restapi/v2/accounts)。此调用需要distributorCode和distributorPassword。这些似乎与用于其他REST调用的Username,Password和IntegratorKey不同。

您似乎可以使用“获取帐户配置”调用(https://demo.docusign.net/restapi/v2/accounts/provisioning)检索distributorCode和distributorPassword。此调用需要在X-DocuSign-AppToken标头中提供AppToken。我正在使用模拟账户,但无法找到如何为此帐户获取AppToken。

REST调用获取帐户信息(accounts /:accountId)似乎也返回distributorCode和distributorPassword,但是当我使用我的accountId调用它时,我得到的是distributorCode(DEVCENTER_DEMO_APRIL2013),但不是distributorPassword。

获取帐户信息回复:

{
  "currentPlanId": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "planName": "DEVCENTER_DEMO_APRIL2013",
  "planStartDate": "2014-09-05T22:44:35.8230000Z",
  "planEndDate": "2015-09-05T22:44:35.8230000Z",
  "billingPeriodStartDate": "2014-09-05T07:00:00.0000000Z",
  "billingPeriodEndDate": "2014-10-05T07:00:00.0000000Z",
  "billingPeriodEnvelopesSent": "0",
  "billingPeriodEnvelopesAllowed": "unlimited",
  "billingPeriodDaysRemaining": "27",
  "canUpgrade": "false",
  "canCancelRenewal": "false",
  "envelopeSendingBlocked": "false",
  "envelopeUnitPrice": "$0.00",
  "suspensionStatus": "",
  "accountName": "xxxxxx",
  "connectPermission": "full",
  "docuSignLandingUrl": "http://www.docusign.com/products/sign_up/buy_now.php",
  "distributorCode": "DEVCENTER_DEMO_APRIL2013",
  "accountIdGuid": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "currencyCode": "USD",
  "forgottenPasswordQuestionsCount": "1",
  "paymentMethod": "purchase_order",
  "createdDate": "2014-09-05T22:44:35.7270000Z"
}

1 个答案:

答案 0 :(得分:1)

根据DocuSign,注册后,distributorCodedistributorPassword将发给DocuSign帐户的所有者。它们与您的用户名,密码和集成商密钥不同。

然后,您可以使用以下格式在调用REST API时将它们添加为额外标头:

X-DocuSign-Distributor: <DistributorCredentials><DistributorCode>DocuSign</DistributorCode><Password>xxxx</Password></DistributorCredentials>