Inttegro.Broadcasts (inttegro v0.2.0)

Copy Markdown View Source

Manages broadcasts sent through Inttegro Chimes.

A broadcast applies one message to a larger recipient set and records its own delivery state. Use this API to inspect or cancel a broadcast after it has been created by a messaging flow.

Summary

Functions

Cancel a broadcast before execution wins the cancellation race.

Functions

cancel(client, request, options \\ [])

Cancel a broadcast before execution wins the cancellation race.

Parameters

Returns

Returns {:ok, Inttegro.Broadcasts.Detail.t()} when Inttegro accepts and decodes the operation. Returns {:error, exception} for API, transport, or decoding failures. A successful API response can still describe an asynchronous resource that has not reached its terminal state.

Example

request = Inttegro.Broadcasts.CancelRequest.new!(request_attributes)

case Inttegro.Broadcasts.cancel(client, request) do
  {:ok, result} -> result
  {:error, error} -> {:error, error}
end

lookup(client, request, options \\ [])

Look up a broadcast

Parameters

Returns

Returns {:ok, Inttegro.Broadcasts.Detail.t()} when Inttegro accepts and decodes the operation. Returns {:error, exception} for API, transport, or decoding failures. A successful API response can still describe an asynchronous resource that has not reached its terminal state.

Example

request = Inttegro.Broadcasts.LookupRequest.new!(request_attributes)

case Inttegro.Broadcasts.lookup(client, request) do
  {:ok, result} -> result
  {:error, error} -> {:error, error}
end