View Source ProdopsEx.Validate (ProdopsEx v0.1.0)

Handles validation operations for the ProdOps API.

Summary

Functions

Validates the provided API key and returns team information.

Functions

Link to this function

validate_api_key(config \\ [])

View Source
@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> ProdopsEx.Validate.validate_api_key()
{:ok, %{status: "ok", response: %{"team_id" => 1, "team_name" => "ProdOps"}}}