为什么在我使用 Docusign api 创建信封时显示错误?

why it shows me error while I am creating envelope using Docusign apis?

Client error: `POST https://demo.docusign.net/restapi/v2.1/accounts/74724935-eef9-4006-a4be-05c65feb49fc/envelopes` resulted in a `401 Unauthorized` response:

{"errorCode":"PARTNER_AUTHENTICATION_FAILED","message":"指定的集成商密钥未找到或被禁用。

您没有提供您的代码或任何有关如何进行 API 调用的信息。 但是这个错误意味着你没有正确设置 Auth。 您需要使用尚未过期且对此环境有效的令牌提供安全性 header。 建议您阅读如何 use OAuth with DocuSign.

这里列出了一些您可以检查的内容:https://www.docusign.com/blog/dsdev-from-the-trenches-may-2020

  • 您的集成密钥有效吗?
  • 能否在Demo环境下调用成功?
  • 你的x-docusign-authenticationheader是怎么定义的? 请不要提供密码或密钥本身等敏感信息,只需将密钥凭据替换为通用文本的格式
  • 您是使用SDK还是直接调用API?