Docusign分页信封JSON数据 [英] Docusign Paging Envelope JSON Data

查看:73
本文介绍了Docusign分页信封JSON数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用REST API集成Docusign,以下载文档附件,并使用DocuSign将它们上传到Sharepoint c#SDK

I am integrating Docusign using REST API to download the document attachments and uploading them to Sharepoint using DocuSign c# SDK

我可以看到 envelopes.NextUri ,但我不确定如何分页数据,
JSON响应-

I can see the envelopes.NextUri, but I am not sure how to page the data , JSON response -

nextUri":"/accounts/<acc-id>/envelopes?start_position=100&count=100&from_date=7%2f10%2f2016+5%3a24%3a59+AM&from_to_status=changed&to_date=8%2f14%2f2017+5%3a24%3a59+AM&status=Completed","previousUri":"","resultSetSize":"100","startPosition":"0","totalSetSize":"6709"}

能否请您向我提供有关如何分页nextUri参数上的JSON数据的摘要?。

Could you please provide me a snippet on how to page the JSON data on nextUri parameter?.

推荐答案

listStatusChanges api不支持分页。

The listStatusChanges api does not support pagination.

为什么要在api上实现分页?为什么不只检索整个数据集并将其缓存在应用程序中呢。

Why do you want to implement pagination on top of the api? Why not just retrieve the entire dataset and cache it in your application.

由于您只想下载文档并将其归档到Sharepoint,因此您可以使用缓存的数据并将其标记为

Since you just want to download the documents and archive them to Sharepoint, you can just used the cached data and mark it as completed in your application.

您还可以选择使用日期获取部分数据

You also have an option to obtain partial data using the date ranges.

GET /restapi/v2/accounts/{accountId}/envelopes?from_date=2017-01-01&to_date=2017-02-01

GET /restapi/v2/accounts/{accountId}/envelopes?from_date=2017-02-01&to_date=2017-03-01

使用C#SDK

// 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/30/2017"
};

// |EnvelopesApi| contains methods related to envelopes and envelope recipients
var envelopesApi = new EnvelopesApi();
var envelopes = envelopesApi.ListStatusChanges(accountId, options);




Microsoft Flow


也来看看在 Microsoft Flow的DocuSign 中。这样,您可以自动将文档存档到Sharepoint的任务。


Microsoft Flow

Also take a look at DocuSign for Microsoft Flow. With this you can automate the task of archiving documents to Sharepoint.

这篇关于Docusign分页信封JSON数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆