ex_easypost v2.0.0 ExEasyPost.Operation

An operation to perform against the EasyPost API.

This module is generally not used directly, rather is constructed by an EasyPost resource.

ExEasyPost works by using an ExEasyPost.Operation datastructure to describe the action to be taken. The operation can then be passed to perform/2 to for execution.

Example

%ExEasyPost.Operation{ http_method: :post, params: %{ tracker: %{ carrier: “USPS”, tracking_code: “9400110898825022579493” } }, path: “trackers” } |> ExEasyPost.request()

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: %ExEasyPost.Operation{
  headers: term(),
  http_method: term(),
  params: term(),
  path: term()
}

Link to this section Functions

Link to this function perform(operation, config)
perform(t(), map()) :: map()