View Source Meilisearch.Client (meilisearch_ex v1.1.2)

Create a HTTP client to interact with Meilisearch APIs.

Link to this section Summary

Functions

Handles responses success and errors, returns it formatted.

Create a new HTTP client to query Meilisearch.

Link to this section Types

@type error() :: Meilisearch.Error.t() | Tesla.Error | nil

Link to this section Functions

Handles responses success and errors, returns it formatted.

@spec new(
  endpoint: String.t(),
  key: String.t(),
  timeout: integer(),
  log_level: :info | :warn | :error
) ::
  Tesla.Client.t()

Create a new HTTP client to query Meilisearch.

examples

Examples

iex> Meilisearch.Client.new()
%Tesla.Client{}