NAME
Twilio::InstanceContext - Base class for the operations on one record
DESCRIPTION
A context points at one record by its identifiers and offers its operations, without having fetched it, as in $client->messages($sid)->fetch. Each resource has a subclass that sets uri and solution in its constructor.
METHODS
new
my $context = Twilio::InstanceContext->new($version);
with_metadata
my $answer = $client->messages($sid)->with_metadata('fetch');
my $status = $client->messages($sid)->with_metadata('delete')->get_status_code;
Runs one of the record's operations, such as fetch, update or delete, with the arguments that follow its name. Returns a Twilio::Metadata with what the operation returns, and the status code and headers of Twilio's answer. It dies when the record has no such operation.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.