Reads and cancels scheduled work created through Inttegro APIs.
A schedule records when a supported operation should run and whether it is still actionable. Cancellation affects future execution; it does not reverse work that has already completed.
Summary
Functions
@spec cancel(Inttegro.Client.t(), Inttegro.Schedules.CancelRequest.t(), keyword()) :: {:ok, Inttegro.Schedules.CancelDetail.t()} | {:error, Exception.t()}
Cancel a schedule before execution wins the cancellation race.
Parameters
client— an authenticatedInttegro.Client.request— aInttegro.Schedules.CancelRequestcontaining the operation input.options— request options such as:idempotency_keyand additional:headers.
Returns
Returns {:ok, Inttegro.Schedules.CancelDetail.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.Schedules.CancelRequest.new!(request_attributes)
case Inttegro.Schedules.cancel(client, request) do
{:ok, result} -> result
{:error, error} -> {:error, error}
end
@spec lookup(Inttegro.Client.t(), Inttegro.Schedules.LookupRequest.t(), keyword()) :: {:ok, Inttegro.Schedules.Detail.t()} | {:error, Exception.t()}
Look up a scheduled Chime
Parameters
client— an authenticatedInttegro.Client.request— aInttegro.Schedules.LookupRequestcontaining the operation input.options— request options such as:idempotency_keyand additional:headers.
Returns
Returns {:ok, Inttegro.Schedules.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.Schedules.LookupRequest.new!(request_attributes)
case Inttegro.Schedules.lookup(client, request) do
{:ok, result} -> result
{:error, error} -> {:error, error}
end