Docusign信封:创建错误401未经授权 [英] Docusign Envelopes: create ERROR 401 Unauthorized

查看:130
本文介绍了Docusign信封:创建错误401未经授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个使用Docusign API的沙箱帐户。第一步...



< a href = https://i.stack.imgur.com/M7hvd.png rel = nofollow noreferrer>



解决方案

我在请求屏幕快照中看到,您认为我正在传递IntegratorKey(16a82645-5c5a-****-****-********* **)在授权标题中,这是错误的。在Authorization标头中,您需要传递OAUTH令牌。您可以按照以下步骤生成OAUTH令牌:



页面顶部将有一个带有绿色背景的 UnAuthenticate 链接,文本看起来像如下所示



您已针对演示环境进行了身份验证。 取消身份验证



因此,您可以单击取消身份验证,然后将按钮显示为使用沙盒帐户进行身份验证 ,一旦您单击此按钮,便会弹出一个弹出窗口,并带有一个蓝色按钮,即获取OAUTH2令牌 ,点击此按钮,这将打开一个弹出窗口并要求您输入您的演示/沙盒凭据。输入您的凭据,然后尝试上述API调用,它应该可以工作。如果不是这样,则某些过时的cookie /会话仍会向DocuSign发送旧凭据,因此请在隐身浏览或私人浏览中尝试使用它。


I have created a sandbox account for using Docusign APIs. As a first step of it... see the link of tutorial I am trying to Send an electronic signature request via email (topic no. 4 in the link)

My request url and parameters are as specified. But it is giving ERROR 401 Unauthorized

解决方案

I am seeing in Request screenshot, you are I think passing IntegratorKey (16a82645-5c5a-****-****-***********) in the Authorization Header, which is wrong. In Authorization header you need to pass OAUTH token. You can generate OAUTH token with below steps:

There will be an UnAuthenticate link on the top of the page with green background, text will look like below

You are authenticated against the Demo environment. Unauthenticate,

So, can you please click "Unauthenticate", then it will show button as "AUTHENTICATE USING SANDBOX ACCOUNT", once you click this button then a popup will come and it will have a blue button as "GET OAUTH2 TOKEN", click this button, which will open a popup and ask you to enter your Demo/Sandbox credentials. Enter your credentials and then try above API call, it should work. If it does not may be some stale cookies/session will still send old credentials to DocuSign so then try it in Incognito or Inprivate browsing.

这篇关于Docusign信封:创建错误401未经授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆