Humaans.WorkflowSlackActions (Humaans v0.6.0)

Copy Markdown View Source

This module provides functions for retrieving workflow Slack action resources in the Humaans API. Workflow Slack actions are retrieve-only via the API.

Summary

Functions

Retrieves a specific workflow_slack_action by ID.

Types

response()

@type response() ::
  {:ok,
   %Humaans.Resources.WorkflowSlackAction{
     channel: term(),
     created_at: term(),
     id: term(),
     message: 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.WorkflowSlackAction.t()} | {:error, Humaans.Error.t()}

Retrieves a specific workflow_slack_action by ID.

Parameters

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

Examples

client = Humaans.new(access_token: "your_access_token")
{:ok, workflow_slack_action} = Humaans.WorkflowSlackActions.retrieve(client, "workflow_slack_action_id")