This module provides functions for listing and retrieving performance cycle resources in the Humaans API. Performance cycles are read-only via the API.
Summary
Types
Functions
@spec list(client :: map(), params :: map() | keyword() | [{String.t(), term()}]) :: {:ok, [Humaans.Resources.PerformanceCycle.t()]} | {:error, Humaans.Error.t()}
Lists all performance_cycles.
Returns a list of performance_cycles 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_cycles} = Humaans.PerformanceCycles.list(client)
{:ok, performance_cycles} = Humaans.PerformanceCycles.list(client, %{})
@spec retrieve(client :: map(), id :: String.t()) :: {:ok, Humaans.Resources.PerformanceCycle.t()} | {:error, Humaans.Error.t()}
Retrieves a specific performance_cycle by ID.
Parameters
client- Client created withHumaans.new/1id- String ID of the performance_cycle to retrieve
Examples
client = Humaans.new(access_token: "your_access_token")
{:ok, performance_cycle} = Humaans.PerformanceCycles.retrieve(client, "performance_cycle_id")