Klaviyo.RequestOperation (klaviyo v3.0.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.

Link to this section Summary

Functions

Builds a URL string.

Link to this section Types

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

Link to this section Functions

Link to this function

to_url(operation, opts)

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

Builds a URL string.