Humaans.EsignBulkTokens (Humaans v0.6.0)

Copy Markdown View Source

This module provides functions for listing and retrieving e-signature bulk token resources in the Humaans API. Esign bulk tokens are read-only via the API.

Summary

Functions

Lists all esign_bulk_tokens.

Retrieves a specific esign_bulk_token by ID.

Types

list_response()

@type list_response() ::
  {:ok,
   [
     %Humaans.Resources.EsignBulkToken{
       created_at: term(),
       esign_bulk_recipient_id: term(),
       expires_at: term(),
       id: term(),
       token: term(),
       updated_at: term()
     }
   ]}
  | {:error, Humaans.Error.t()}

response()

@type response() ::
  {:ok,
   %Humaans.Resources.EsignBulkToken{
     created_at: term(),
     esign_bulk_recipient_id: term(),
     expires_at: term(),
     id: term(),
     token: term(),
     updated_at: term()
   }}
  | {:error, Humaans.Error.t()}

Functions

list(client, params \\ %{})

@spec list(client :: map(), params :: map() | keyword() | [{String.t(), term()}]) ::
  {:ok, [Humaans.Resources.EsignBulkToken.t()]} | {:error, Humaans.Error.t()}

Lists all esign_bulk_tokens.

Returns a list of esign_bulk_tokens matching the optional filter params.

Parameters

  • client - Client created with Humaans.new/1
  • params - Optional map of filter parameters (default: %{})

Examples

client = Humaans.new(access_token: "your_access_token")
{:ok, esign_bulk_tokens} = Humaans.EsignBulkTokens.list(client)
{:ok, esign_bulk_tokens} = Humaans.EsignBulkTokens.list(client, %{})

retrieve(client, id)

@spec retrieve(client :: map(), id :: String.t()) ::
  {:ok, Humaans.Resources.EsignBulkToken.t()} | {:error, Humaans.Error.t()}

Retrieves a specific esign_bulk_token by ID.

Parameters

  • client - Client created with Humaans.new/1
  • id - String ID of the esign_bulk_token to retrieve

Examples

client = Humaans.new(access_token: "your_access_token")
{:ok, esign_bulk_token} = Humaans.EsignBulkTokens.retrieve(client, "esign_bulk_token_id")