我正在为 AdobeSign 集成创建测试应用程序。
当我在“尝试”页面(https://secure.na1.echosign.com/public/docs/restapi/v6#!/agreements/getSigningUrl)中尝试调用时,我收到以下响应:
请求网址
响应体
{ "signingUrlSetInfos": [ { "signingUrls": [ { "email": "someaddress@somedomain.com", "esignUrl": "https://secure.na2.echosign.com/public/apiesign?pid=CBFCIBAA3AAABLblqZhDurMB28N5za2IxNYmueyExUE7WJa4rOkBdiLuIsl78c08sy12rbHyhu-3rh6BlpbI*&client_id=CBJCHBCAABAAjipHE56ILK-vpGLxT7lgDjXfeBYttICf" } ] } ] }
但是,当我尝试在 c# 中进行相同的调用时,我得到了资源未找到响应:
{"code":"NOT_FOUND","message":"Resource not found"}
这是我的代码:
var client = new RestClient(adobesignURL + "/agreements/" + agreementID);
var request = new RestRequest("signingUrls", Method.GET);
request.AddHeader("Authorization", "Bearer " + adobesignIntegrationKey);
var resp = await client.ExecutePostTaskAsync(request);
如果我在单步执行代码时复制请求 URL,它在 Insomnia 中可以正常工作。什么可能导致问题?