Packages

Complete Twilio SDK for Elixir — 37 products, 494 services, 467 resources. Auto-generated from official OpenAPI specs. Finch HTTP/2, retries with jitter, webhooks, TwiML, telemetry, streaming pagination.

Current section

Files

Jump to
twilio_elixir lib twilio flex v1 insight session_service.ex
Raw

lib/twilio/flex/v1/insight/session_service.ex

# File generated from Twilio's OpenAPI spec — do not edit manually
defmodule Twilio.Flex.V1.Insight.SessionService do
@moduledoc """
Service for Session API operations.
Operations: `update`
"""
alias Twilio.Client
alias Twilio.Deserializer
@doc """
To obtain session details for fetching reports and dashboards
Operation: `CreateInsightsSession` | Tags: FlexV1InsightsSession
"""
@spec update(Client.t(), map(), keyword()) ::
{:ok, Twilio.Resources.Flex.V1.Insight.Session.t()}
| {:ok, map(), map()}
| :ok
| {:error, Twilio.Error.t()}
def update(client, params \\ %{}, opts \\ []) do
with {:ok, data} <-
Client.request(client, :post, "/v1/Insights/Session",
params: params,
opts: opts,
base_url: "https://flex-api.twilio.com",
content_type: :form
) do
{:ok, Deserializer.deserialize(data, Twilio.Resources.Flex.V1.Insight.Session)}
end
end
end