Adobe Esign日期参数

时间:2018-10-01 10:40:16

标签: c# adobe echosign

我目前正在编写一个C#控制台应用程序,以从Adobe Esign下载协议。目前,清单很大,因为它下载了整个历史记录,但是我只想获取上周已签署的协议。

我正在使用RestSharp。

当前,我的代码是:

ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;

RestClient restClient = new RestClient(config.RestClientURL);
restClient.ClearHandlers();
restClient.AddHandler("*", new JsonDeserializer());
restClient.Proxy = new WebProxy(config.WebProxy, 8080);

restClient.Proxy.Credentials = new 
NetworkCredential(config.NetworkCredentialUsername, 
config.NetworkCredentialPassword);

RestRequest restRequestGetAgreements = new RestRequest("agreements?query=", 
Method.GET);

restRequestGetAgreements.AddHeader("Access-Token", Token);
restRequestGetAgreements.AddHeader("x-api-user", "email:" + Email);
IRestResponse restResponse = restClient.Execute(restRequestGetAgreements);

从某种意义上说,它可以下载所有协议,但我只希望上周的协议。

0 个答案:

没有答案