NAME

Twilio::Rest::IpMessaging::V2::Service - The Service resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

my $service = $client->ip_messaging->v2->services->create($friendly_name);
for my $service ($client->ip_messaging->v2->services->read({}, 20)) {
  ...
}
my $service = $client->ip_messaging->v2->services($sid)->fetch;
$client->ip_messaging->v2->services($sid)->update(\%options);
$client->ip_messaging->v2->services($sid)->delete;

DESCRIPTION

This file holds ServiceList, ServicePage, ServiceContext and ServiceInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ServiceList

Returned by $client->ip_messaging->v2->services. See also Twilio::ListResource.

create

my $service = $client->ip_messaging->v2->services->create($friendly_name);

Returns a ServiceInstance.

The required values are:

$friendly_name

No description in the specification.

read

my @records = $client->ip_messaging->v2->services->read(\%options, $limit, $page_size);

Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->ip_messaging->v2->services->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->ip_messaging->v2->services->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->ip_messaging->v2->services->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->ip_messaging->v2->services->get_context($sid);

Returns a ServiceContext, and makes no request.

ServicePage

A Twilio::Page of ServiceInstance objects.

records_key

build_instance

Used by Twilio::Page.

ServiceContext

Returned by $client->ip_messaging->v2->services($sid). It makes no request until one of these methods is called.

fetch

my $service = $client->ip_messaging->v2->services($sid)->fetch;

Returns a ServiceInstance.

update

my $service = $client->ip_messaging->v2->services($sid)->update(\%options);

Returns a ServiceInstance.

The options are:

consumption_report_interval

No description in the specification.

default_channel_creator_role_sid

No description in the specification.

default_channel_role_sid

No description in the specification.

default_service_role_sid

No description in the specification.

friendly_name

No description in the specification.

limits_channel_members

No description in the specification.

limits_user_channels

No description in the specification.

media_compatibility_message

No description in the specification.

notifications_added_to_channel_enabled

No description in the specification.

notifications_added_to_channel_sound

No description in the specification.

notifications_added_to_channel_template

No description in the specification.

notifications_invited_to_channel_enabled

No description in the specification.

notifications_invited_to_channel_sound

No description in the specification.

notifications_invited_to_channel_template

No description in the specification.

notifications_log_enabled

No description in the specification.

notifications_new_message_badge_count_enabled

No description in the specification.

notifications_new_message_enabled

No description in the specification.

notifications_new_message_sound

No description in the specification.

notifications_new_message_template

No description in the specification.

notifications_removed_from_channel_enabled

No description in the specification.

notifications_removed_from_channel_sound

No description in the specification.

notifications_removed_from_channel_template

No description in the specification.

post_webhook_retry_count

No description in the specification.

post_webhook_url

No description in the specification.

pre_webhook_retry_count

No description in the specification.

pre_webhook_url

No description in the specification.

reachability_enabled

No description in the specification.

read_status_enabled

No description in the specification.

typing_indicator_timeout

No description in the specification.

webhook_filters

An array reference.

webhook_method

One of GET or POST.

delete

$client->ip_messaging->v2->services($sid)->delete;

Returns true.

bindings

my $list = $object->bindings;

my $context = $object->bindings($sid);

See Twilio::Rest::IpMessaging::V2::Service::Binding.

channels

my $list = $object->channels;

my $context = $object->channels($sid);

See Twilio::Rest::IpMessaging::V2::Service::Channel.

roles

my $list = $object->roles;

my $context = $object->roles($sid);

See Twilio::Rest::IpMessaging::V2::Service::Role.

users

my $list = $object->users;

my $context = $object->users($sid);

See Twilio::Rest::IpMessaging::V2::Service::User.

ServiceInstance

See also Twilio::InstanceResource.

It has fetch, update, delete, bindings, channels, roles and users, which work as they do on the context.

Its fields are:

account_sid

No description in the specification.

consumption_report_interval

No description in the specification.

date_created

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

default_channel_creator_role_sid

No description in the specification.

default_channel_role_sid

No description in the specification.

default_service_role_sid

No description in the specification.

friendly_name

No description in the specification.

limits

No description in the specification.

No description in the specification.

media

No description in the specification.

notifications

No description in the specification.

post_webhook_retry_count

No description in the specification.

post_webhook_url

No description in the specification.

pre_webhook_retry_count

No description in the specification.

pre_webhook_url

No description in the specification.

reachability_enabled

No description in the specification.

read_status_enabled

No description in the specification.

sid

No description in the specification.

typing_indicator_timeout

No description in the specification.

url

No description in the specification.

webhook_filters

No description in the specification.

webhook_method

No description in the specification.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.