Klaviyo.Opts (klaviyo v3.1.0)

Configuration needed by the HTTP client.

Summary

Functions

Builds a Klaviyo.Opts struct.

Types

@type t() :: %Klaviyo.Opts{
  access_token: String.t(),
  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()
}

Functions

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

Builds a Klaviyo.Opts struct.

Any options passed into this function will override struct defaults.