RevelryAI.Validate (RevelryAI v0.2.0)

View Source

Handles validation operations for the RevelryAI API.

Summary

Functions

Validates the provided API key and returns team information.

Functions

validate_api_key(config \\ [])

@spec validate_api_key(Keyword.t()) :: {:ok, map()} | {:error, any()}

Validates the provided API key and returns team information.

Parameters

  • config (optional): a configuration map used to override default config values

Example

iex> RevelryAI.Validate.validate_api_key()
{:ok, %{status: "ok", response: %{"team_id" => 1, "team_name" => "RevelryAI"}}}