且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从DocuSign API请求访问令牌时收到400错误的请求消息

更新时间:2022-02-10 21:20:46

我建议您在.NET / C#中使用OAuth库
如果您想了解操作方法,请克隆此仓库。
问题是您需要首先获取代码,然后进行交换e作为令牌。如果您手动进行,则涉及两个步骤。
第一步需要您在浏览器中对用户进行身份验证,然后才能调用任何API。
在此步骤中,您需要传递集成密钥并重定向回您的URL。
重定向回后,您将收到一个代码,可以使用您讨论的API调用将其交换为访问令牌。

I recommend you use a library for OAuth in .NET/C#. If you want to see how this is done, please clone this repo. The issue is that you need to first get a code and then exchange it for a token. There are 2 steps involved if you do this manually. The first step requires you to authenticate the user in a browser before you can call any API. During that step you need to pass in your integration key and redirect back to your URL. Once redirected back you'll receive a code that can be exchanged for an access token using the API call you had talks about.