PDFShift.ClientBehaviour behaviour (PDFShift v0.1.0)

View Source

Behaviour specification for PDFShift API client.

Summary

Callbacks

get(config, endpoint, client_opts)

@callback get(
  config :: PDFShift.Config.t(),
  endpoint :: String.t(),
  client_opts :: keyword()
) ::
  {:ok, map()} | {:error, any()}

post(config, endpoint, payload, client_opts)

@callback post(
  config :: PDFShift.Config.t(),
  endpoint :: String.t(),
  payload :: map(),
  client_opts :: keyword()
) :: {:ok, map()} | {:error, any()}