我想使用休息食谱获取20个记录/请求信封信息。如何在Docusign中使用下一个和上一个Uri使用休息食谱
我的要求是:
时共有20条记录转储到数据库中,我想打另一批将获取我的记录,从21到40,然后在第三个电话,从41到60,等等...
我已经使用下面的代码,但没有得到任何想法,如何获得信息,如分页。 //调用Login()API来设置用户的baseUrl并返回他们的账户ID
string accountId = loginApi(USER_NAME, PASSWORD);
// Set the Start Date (to limit the results returned)
DateTime fromDate = new DateTime(2016, 09, 15);
string fromDateStr = fromDate.ToString("o");
DateTime toDate = new DateTime(2016, 09, 16);
string toDateStr = toDate.ToString("o");
// set a filter for the envelopes we want returned using the
// fromDate and count properties
// Here I want to use paging like functionality.
EnvelopesApi.ListStatusChangesOptions options = new EnvelopesApi.ListStatusChangesOptions()
{
count = "20",// How to increase this counter for next request?
fromDate = fromDateStr,
toDate = toDateStr
};
EnvelopesApi envelopesApi = new EnvelopesApi();
EnvelopesInformation envelopes = envelopesApi.ListStatusChanges(accountId, options);
只是出于好奇,是20你的实际最终数量增量?这似乎很低。 – Andrew
Andrew,这是一个例子,我想按照自己的想法进行配置,但这仅仅是一个例子,基本问题是,如何获取下一个范围的记录,例如,第一次请求将取1-20,第二次将取21-40等等。 –