通过 API c# 检索'DOCSIGN'签名信封列表



我想检索给定日期范围内的所有烧焦信封详细信息。截至目前,我最多可以检索 100 条记录的详细信息。 我需要获取在给定时间间隔内刚刚完成的所有信封。

我使用以下代码检索所有已签署的合同详细信息。 这最多可以返回 100 个信封详细信息,但我的情况可能不止于此(我如何检索给定日期范围内的所有信封详细信息(。

文档签名是否只允许每个请求提供 100 个信封详细信息?

string accountId = loginApi(username, password);
//===========================================================
// Step 2: List Envelopes (using filters)
//===========================================================
// This example gets statuses of all envelopes in your account going back 1 full month...
DateTime fromDate = DateTime.UtcNow;
fromDate = fromDate.AddDays(-4);
string fromDateStr = fromDate.ToString("o");
// set a filter for the envelopes we want returned using the fromDate and count properties
var options = new EnvelopesApi.ListStatusChangesOptions()
{
count = "100",
fromDate = fromDateStr
};

传递fromDatetoDate属性,而不是传递count属性。

// set a filter for the envelopes we want returned using the fromDate and count properties
var options = new EnvelopesApi.ListStatusChangesOptions()
{
fromDate = "6/16/2017",
toDate = "6/20/2017"
};
// |EnvelopesApi| contains methods related to envelopes and envelope recipients
var envelopesApi = new EnvelopesApi();
var envelopes = envelopesApi.ListStatusChanges(accountId, options);

有关详细信息,请参阅此答案。

如果您不输入计数,则将获取所有记录。另外请检查 - https://docs.docusign.com/esign/restapi/Envelopes/Envelopes/listStatusChanges/对于可用的查询参数,您可以在调用中传递这些参数以获取记录列表。

最新更新