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