EPTSDK (ept_sdk v10.1.1)

Summary

Types

t()

@type t() :: %EPTSDK{
  authorization: String.t(),
  http_client: Req.Request.t(),
  links: term(),
  location: URI.t() | String.t(),
  meta: term(),
  response: term(),
  user_agent: String.t()
}

Functions

client(properties)

delete(client, path, query \\ [])

get(client, path, query \\ [])

patch(client, path, data, query \\ [])

post(client, path, data, query \\ [])

put(client, path, data, query \\ [])

sideload(exception, relationships)

@spec sideload(
  {:ok, [struct()] | struct() | nil, list(), t()},
  [atom()]
) ::
  {:ok, [struct()] | struct() | nil, list(), t()}
  | {:error, any()}
  | {:error | :unprocessable_content | :decoding_error, any(), Req.Response.t()}

update_client_from_request(error, client)