HitPay.API (hit_pay v0.2.3)

Utilities for interacting with the HitPay API. API Doc: https://hit-pay.com/docs.html

Link to this section Summary

Link to this section Types

Specs

body() :: iodata() | {:multipart, list()}

Specs

headers() :: %{required(String.t()) => String.t()} | %{}

Specs

method() :: :get | :post | :put | :delete | :patch

Link to this section Functions

Link to this function

request(path, method, body \\ "", headers \\ %{}, opts \\ [])

Specs

request(String.t(), method(), body(), headers(), list()) ::
  {:ok, map()} | {:error, Error.t()}