Twilio.IpMessaging.V2.ServiceService (twilio_elixir v0.1.1)

Copy Markdown View Source

Service for Service API operations.

Operations: list, create, fetch, update, delete

Summary

Functions

Operation: CreateService | Tags: IpMessagingV2Service

Operation: DeleteService | Tags: IpMessagingV2Service

Operation: FetchService | Tags: IpMessagingV2Service

Operation: ListService | Tags: IpMessagingV2Service

Stream: (lazy auto-pagination).

Operation: UpdateService | Tags: IpMessagingV2Service

Functions

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

@spec create(Twilio.Client.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Service.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: CreateService | Tags: IpMessagingV2Service

Required Parameters

ParameterTypeDescription
FriendlyNamestring

delete(client, sid, opts \\ [])

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

Operation: DeleteService | Tags: IpMessagingV2Service

fetch(client, sid, opts \\ [])

@spec fetch(Twilio.Client.t(), String.t(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Service.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: FetchService | Tags: IpMessagingV2Service

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

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

Operation: ListService | Tags: IpMessagingV2Service

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

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

Stream: (lazy auto-pagination).

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

@spec update(Twilio.Client.t(), String.t(), map(), keyword()) ::
  {:ok, Twilio.Resources.IpMessaging.V2.Service.t()}
  | {:ok, map(), map()}
  | :ok
  | {:error, Twilio.Error.t()}

Operation: UpdateService | Tags: IpMessagingV2Service

Optional Parameters

ParameterTypeDescription
ConsumptionReportIntervalinteger
DefaultChannelCreatorRoleSidstring
DefaultChannelRoleSidstring
DefaultServiceRoleSidstring
FriendlyNamestring
Limits.ChannelMembersinteger
Limits.UserChannelsinteger
Media.CompatibilityMessagestring
Notifications.AddedToChannel.Enabledboolean
Notifications.AddedToChannel.Soundstring
Notifications.AddedToChannel.Templatestring
Notifications.InvitedToChannel.Enabledboolean
Notifications.InvitedToChannel.Soundstring
Notifications.InvitedToChannel.Templatestring
Notifications.LogEnabledboolean
Notifications.NewMessage.BadgeCountEnabledboolean
Notifications.NewMessage.Enabledboolean
Notifications.NewMessage.Soundstring
Notifications.NewMessage.Templatestring
Notifications.RemovedFromChannel.Enabledboolean
Notifications.RemovedFromChannel.Soundstring
Notifications.RemovedFromChannel.Templatestring
PostWebhookRetryCountinteger
PostWebhookUrlstring (uri)
PreWebhookRetryCountinteger
PreWebhookUrlstring (uri)
ReachabilityEnabledboolean
ReadStatusEnabledboolean
TypingIndicatorTimeoutinteger
WebhookFiltersarray
WebhookMethodstring (http-method)Values: GET, POST