This module provides functions for listing and retrieving performance instance resources in the Humaans API. Performance instances are read-only via the API.
Summary
Types
Functions
@spec list(client :: map(), params :: map() | keyword() | [{String.t(), term()}]) :: {:ok, [Humaans.Resources.PerformanceInstance.t()]} | {:error, Humaans.Error.t()}
Lists all performance_instances.
Returns a list of performance_instances matching the optional filter params.
Parameters
client- Client created withHumaans.new/1params- Optional map of filter parameters (default:%{})
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, performance_instances} = Humaans.PerformanceInstances.list(client)
{:ok, performance_instances} = Humaans.PerformanceInstances.list(client, %{})
@spec retrieve(client :: map(), id :: String.t()) :: {:ok, Humaans.Resources.PerformanceInstance.t()} | {:error, Humaans.Error.t()}
Retrieves a specific performance_instance by ID.
Parameters
client- Client created withHumaans.new/1id- String ID of the performance_instance to retrieve
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, performance_instance} = Humaans.PerformanceInstances.retrieve(client, "performance_instance_id")