如何从 docusign 帐户获取模板列表?

How to get template list from docusing account?

如何从 Docusign api 中检索所有模板 vb.net.I 设法通过文档网站创建多个模板,并且需要从帐户中检索模板列表。

此致, 亚拉文

您需要从 https://www.nuget.org/packages/DocuSign.eSign.dll/ 添加 nuget 包,但此代码不适用于最新版本。

Imports System
Imports System.Collections.Generic
Imports DocuSign.eSign.Api
Imports DocuSign.eSign.Client
Imports DocuSign.eSign.Model
Imports Microsoft.AspNetCore.MvcPrivate Sub SurroundingSub()

    Dim config = New Configuration(New ApiClient(basePath))
    config.AddDefaultHeader("Authorization", "Bearer " & accessToken)
    Dim templatesApi As TemplatesApi = New TemplatesApi(config)
    Dim options As TemplatesApi.ListTemplatesOptions = New TemplatesApi.ListTemplatesOptions()
    options.searchText = "Example Signer and CC template"
    Dim results As EnvelopeTemplateResults = templatesApi.ListTemplates(accountId, options)
End Sub