Я пытаюсь получить все документы, которые я создал, с сайта docusign, вызвав TemplateApi, но я получил пустой список документов:
"deliveredDateTime": null,
"description": "My first template",
"documents": [],
"documentsCombinedUri": null,
"documentsUri": null
У меня есть 2 документа PDF в этом шаблоне, очень простой код для получения всех шаблонов:
public TemplateDocumentsResult templateDocs(String templateId) throws ApiException {
ApiClient apiClient = baseRestApiClient();
apiClient.addDefaultHeader("Authorization", "Bearer " + getToken());
TemplatesApi templateApi = new TemplatesApi(apiClient);
return templateApi.listDocuments(accountId, templateId);
}