Docusign:如何列出管理员帐户中的所有信封

Docusign: how to list all the envelopes in the admin account

我正在尝试为我的管理员帐户列出所有存在的信封,但在 python SDK 中找不到任何方法。

请帮助我如何列出管理员帐户中的所有信封

您可以使用 Envelopes::listStatusChanges 方法和 from_date 查询参数集。响应将包含一系列从该日期开始创建的信封。

这是一个例子:

def list_envelopes():
    """
    Lists the user's envelopes created in the last 10 days
    """

    #
    # Step 1. Prepare the options object
    #
    from_date = pendulum.now().subtract(days=10).to_iso8601_string()

    #
    # Step 2. Get and display the results
    # 

    api_client = ApiClient()
    api_client.host = base_path
    api_client.set_default_header("Authorization", "Bearer " + access_token)

    envelope_api = EnvelopesApi(api_client)
    results = envelope_api.list_status_changes(account_id, from_date = from_date)
    return results

您可以在我们的 python QuickStarts repo.

中找到此示例以及更多内容