NAME

Twilio::Rest::Api::V2010::Account::Queue::Member - The Member resource

SYNOPSIS

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

for my $member ($client->queues($queue_sid)->members->read({}, 20)) {
  ...
}
my $member = $client->queues($queue_sid)->members($call_sid)->fetch;
$client->queues($queue_sid)->members($call_sid)->update($url, \%options);

DESCRIPTION

Calls in a call queue

This file holds MemberList, MemberPage, MemberContext and MemberInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

MemberList

Returned by $client->queues($queue_sid)->members. See also Twilio::ListResource.

read

my @records = $client->queues($queue_sid)->members->read(\%options, $limit, $page_size);

Retrieve the members of the queue. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->queues($queue_sid)->members->stream(\%options, $limit, $page_size);

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

page

my $page = $client->queues($queue_sid)->members->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->queues($queue_sid)->members->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->queues($queue_sid)->members->get_context($call_sid);

Returns a MemberContext, and makes no request.

MemberPage

A Twilio::Page of MemberInstance objects.

records_key

build_instance

Used by Twilio::Page.

MemberContext

Returned by $client->queues($queue_sid)->members($call_sid). It makes no request until one of these methods is called.

fetch

my $member = $client->queues($queue_sid)->members($call_sid)->fetch;

Fetch a specific member from the queue. Returns a MemberInstance.

update

my $member = $client->queues($queue_sid)->members($call_sid)->update($url, \%options);

Dequeue a member from a queue and have the member's call begin executing the TwiML document at that URL. Returns a MemberInstance.

The required values are:

$url

The absolute URL of the Queue resource.

The options are:

method

How to pass the update request data. Can be GET or POST and the default is POST. POST sends the data as encoded form data and GET sends the data as query parameters. One of GET or POST.

MemberInstance

See also Twilio::InstanceResource.

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

Its fields are:

call_sid

The SID of the Call the Member resource is associated with.

date_enqueued

The date that the member was enqueued, given in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

position

This member's current position in the queue.

queue_sid

The SID of the Queue the member is in.

uri

The URI of the resource, relative to https://api.twilio.com.

wait_time

The number of seconds the member has been in the queue.

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.