Twilio.Flex.V1.Insight.InsightsSegmentsService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for InsightsSegments API operations.

Operations: list

Summary

Functions

To get segments for given reservation Ids

Stream: To get segments for given reservation Ids (lazy auto-pagination).

Functions

list(client, params \\ %{}, opts \\ [])

@spec list(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Page.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

To get segments for given reservation Ids

Operation: ListInsightsSegments | Tags: FlexV1InsightsSegments

Query Parameters

ParameterTypeDescription
SegmentIdstringTo unique id of the segment
ReservationIdarrayThe list of reservation Ids

stream(client, params \\ %{}, opts \\ [])

@spec stream(Twilio.Client.t(), map(), keyword()) :: Enumerable.t()

Stream: To get segments for given reservation Ids (lazy auto-pagination).