Humaans.WorkflowStats (Humaans v0.6.0)

Copy Markdown View Source

This module provides functions for retrieving workflow stat resources in the Humaans API. Workflow stats are retrieve-only via the API.

Summary

Functions

Retrieves a specific workflow_stat by ID.

Types

response()

@type response() ::
  {:ok,
   %Humaans.Resources.WorkflowStat{
     created_at: term(),
     id: term(),
     stats: term(),
     updated_at: term(),
     workflow_id: term()
   }}
  | {:error, Humaans.Error.t()}

Functions

retrieve(client, id)

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

Retrieves a specific workflow_stat by ID.

Parameters

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

Examples

client = Humaans.new(access_token: "your_access_token")
{:ok, workflow_stat} = Humaans.WorkflowStats.retrieve(client, "workflow_stat_id")