Klaviyo.RequestOperation (klaviyo v3.1.0)

Intermediate HTTP request data structure.

Stores request details as their original data structures. This differs from Klaviyo.Request which stores request details in formats expected by an endpoint.

Summary

Functions

Builds a URL string.

Types

@type t() :: %Klaviyo.RequestOperation{
  body: Enum.t(),
  encoding: :json | :www_form,
  headers: Klaviyo.HTTP.headers_t(),
  method: Klaviyo.HTTP.method_t(),
  path: String.t(),
  query: Enum.t()
}

Functions

Link to this function

to_url(operation, opts)

@spec to_url(any(), any()) :: String.t()

Builds a URL string.