View Source WorkOS.Client behaviour (WorkOS SDK for Elixir v1.1.0)
WorkOS API client.
Summary
Functions
Creates a new WorkOS client struct given a keyword list of config opts.
Types
@type response(type) :: {:ok, type} | {:error, WorkOS.Error.t() | :client_error}
Callbacks
@callback request(t(), Keyword.t()) :: {:ok, %{body: map(), status: pos_integer()}} | {:error, any()}
Functions
@spec new(WorkOS.config()) :: t()
Creates a new WorkOS client struct given a keyword list of config opts.