Triple.Brands (triple v1.0.0)

Copy Markdown View Source

Brand lookups — fetch a brand's canonical name/logo by id.

Summary

Functions

Fetches a brand by its UUID.

Same as fetch/2, but raises instead of returning {:error, _}.

Functions

fetch(config, id)

@spec fetch(Triple.Config.t(), String.t()) ::
  {:ok, Triple.Types.Brand.t()} | {:error, Triple.Error.t()}

Fetches a brand by its UUID.

Examples

Triple.Brands.fetch(client, "497f6eca-6276-4993-bfeb-53cbbbba6f08")
#=> {:ok, %Triple.Types.Brand{name: "Amazon", ...}}

fetch!(config, id)

Same as fetch/2, but raises instead of returning {:error, _}.