NAME

Twilio::Rest::Preview::Wireless::Command - The Command resource

SYNOPSIS

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

my $command = $client->preview->wireless->commands->create($command, \%options);
for my $command ($client->preview->wireless->commands->read({}, 20)) {
  ...
}
my $command = $client->preview->wireless->commands($sid)->fetch;

DESCRIPTION

This file holds CommandList, CommandPage, CommandContext and CommandInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

CommandList

Returned by $client->preview->wireless->commands. See also Twilio::ListResource.

create

my $command = $client->preview->wireless->commands->create($command, \%options);

Returns a CommandInstance.

The required values are:

$command

No description in the specification.

The options are:

callback_method

No description in the specification.

callback_url

No description in the specification.

command_mode

No description in the specification.

device

No description in the specification.

include_sid

No description in the specification.

sim

No description in the specification.

read

my @records = $client->preview->wireless->commands->read(\%options, $limit, $page_size);

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

The options are:

device

No description in the specification.

direction

No description in the specification.

sim

No description in the specification.

status

No description in the specification.

stream

my $stream = $client->preview->wireless->commands->stream(\%options, $limit, $page_size);

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

page

my $page = $client->preview->wireless->commands->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->preview->wireless->commands->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->preview->wireless->commands->get_context($sid);

Returns a CommandContext, and makes no request.

CommandPage

A Twilio::Page of CommandInstance objects.

records_key

build_instance

Used by Twilio::Page.

CommandContext

Returned by $client->preview->wireless->commands($sid). It makes no request until one of these methods is called.

fetch

my $command = $client->preview->wireless->commands($sid)->fetch;

Returns a CommandInstance.

CommandInstance

See also Twilio::InstanceResource.

It has fetch, which work as they do on the context.

Its fields are:

account_sid

No description in the specification.

command

No description in the specification.

command_mode

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.

device_sid

No description in the specification.

direction

No description in the specification.

sid

No description in the specification.

sim_sid

No description in the specification.

status

No description in the specification.

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.