Klaviyo.Opts (klaviyo v3.0.0)

Configuration needed by the HTTP client.

Link to this section Summary

Functions

Builds a Klaviyo.Opts struct.

Link to this section Types

@type t() :: %Klaviyo.Opts{
  api_key: String.t(),
  client: module(),
  client_opts: keyword(),
  headers: Klaviyo.HTTP.headers_t(),
  host: String.t(),
  json_codec: module(),
  path: String.t(),
  port: pos_integer(),
  protocol: String.t(),
  retry: boolean() | module(),
  retry_opts: keyword(),
  revision: String.t()
}

Link to this section Functions

@spec new(keyword()) :: t()

Builds a Klaviyo.Opts struct.

Any options passed into this function will override struct defaults.