NAME
Twilio::Rest::Messaging::V1::LinkshorteningMessagingService - The LinkshorteningMessagingService resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $linkshortening_messaging_service = $client->messaging->v1->linkshortening_messaging_service($domain_sid, $messaging_service_sid)->create();
$client->messaging->v1->linkshortening_messaging_service($domain_sid, $messaging_service_sid)->delete;
DESCRIPTION
This file holds LinkshorteningMessagingServiceList, LinkshorteningMessagingServiceContext and LinkshorteningMessagingServiceInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
LinkshorteningMessagingServiceList
Returned by $client->messaging->v1->linkshortening_messaging_service($domain_sid). See also Twilio::ListResource.
get_context
my $context = $client->messaging->v1->linkshortening_messaging_service($domain_sid)->get_context($messaging_service_sid);
Returns a LinkshorteningMessagingServiceContext, and makes no request.
LinkshorteningMessagingServiceContext
Returned by $client->messaging->v1->linkshortening_messaging_service($domain_sid, $messaging_service_sid). It makes no request until one of these methods is called.
create
my $linkshortening_messaging_service = $client->messaging->v1->linkshortening_messaging_service($domain_sid, $messaging_service_sid)->create();
Returns a LinkshorteningMessagingServiceInstance.
delete
$client->messaging->v1->linkshortening_messaging_service($domain_sid, $messaging_service_sid)->delete;
Returns true.
LinkshorteningMessagingServiceInstance
See also Twilio::InstanceResource.
It has create and delete, which work as they do on the context.
Its fields are:
- domain_sid
-
The unique string identifies the domain resource
- messaging_service_sid
-
The unique string that identifies the messaging service
- url
-
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.