Copy link to clipboard
Copied
{"fileInfos":[{"transientDocumentId":"3AAABLblqZhABbunFXbYVw8ebYEaV3f9UZJxA4IapuypniVDjOHtUyLfnLlxmFTDo7PXZ9_fmPcoB69gLmYpfZXi36qR33MLGskxDIF0IoejLPjez-8thrM2lgm6ozFXLKyCoSfY5Wl2H1t_VmetX0libk6Jw8Fi3xBJJIzK-lfek21ddtWN8y638Fr2dRFvQkD30dzDjuLMYr_zbR9A5ssrsVP43p6oOxKL1-PIv5zz8j3iQmzqZg4RxF974K8lOs8Vk87ZBOsOx7pxPrITV5yqxIXu9rPxa9R7YXjS253zgIl7oyWW-MyYN5ow24jut-9sms_yH1sKHFz5m7myHZJoS0wO-1w2ptjA0HUo5QaTX2DGVPGRaGA**"}],"name":"AdobeEsign","participantSetsInfo":[{"memberInfos":[{"email":"jjohn@tcasonline.com","name":"Jinson John"}],"order":1,"role":"SIGNER"}],"signatureType":"ESIGN","state":"IN_PROCESS"}
I have used the above JSON in the REST API and I got the response (agreementid) but when I use the same JSON in REST Client it's showing
{"code":"INVALID_JSON","message":"An invalid JSON was specified"}
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
string baseUri = string.Format("https://api.eu2.adobesign.com");
RestClient restClient = new RestClient(baseUri);
RestRequest request = new RestRequest("api/rest/v6/agreements", Method.POST);
request.AddHeader("Content-Type", "application/json; charset=utf-8");
var agmclient = new RestClient("https://api.eu2.adobesign.com");
request.AddHeader("Authorization", "Bearer " + AccessToken);
request.AddParameter("AgreementInfo", jsonInfo);
IRestResponse response = aclient.Execute(agmrequest);
Does anyone have any idea about this issue?
Copy link to clipboard
Copied