Bunnyx.ApiKey (Bunnyx v0.3.0)

Copy Markdown View Source

API key management. Lists the API keys associated with your account.

Uses the main API client created with Bunnyx.new/1.

Usage

client = Bunnyx.new(api_key: "sk-...")

{:ok, page} = Bunnyx.ApiKey.list(client)

Summary

Functions

list(client, opts \\ [])

@spec list(
  Bunnyx.t() | keyword(),
  keyword()
) ::
  {:ok,
   %{
     items: [map()],
     current_page: integer(),
     total_items: integer(),
     has_more_items: boolean()
   }}
  | {:error, Bunnyx.Error.t()}

Lists API keys.

Options

  • :page — page number
  • :per_page — items per page