NAME

Twilio::Rest::Insights::V1::Room::Participant - The Participant resource

SYNOPSIS

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

for my $participant ($client->insights->v1->rooms($room_sid)->participants->read({}, 20)) {
  ...
}
my $participant = $client->insights->v1->rooms($room_sid)->participants($participant_sid)->fetch;

DESCRIPTION

This file holds ParticipantList, ParticipantPage, ParticipantContext and ParticipantInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ParticipantList

Returned by $client->insights->v1->rooms($room_sid)->participants. See also Twilio::ListResource.

read

my @records = $client->insights->v1->rooms($room_sid)->participants->read(\%options, $limit, $page_size);

Get a list of room participants. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->insights->v1->rooms($room_sid)->participants->stream(\%options, $limit, $page_size);

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

page

my $page = $client->insights->v1->rooms($room_sid)->participants->page(\%options, $page_size, $page_token, $page_number);

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

get_page

my $page = $client->insights->v1->rooms($room_sid)->participants->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->insights->v1->rooms($room_sid)->participants->get_context($participant_sid);

Returns a ParticipantContext, and makes no request.

ParticipantPage

A Twilio::Page of ParticipantInstance objects.

records_key

build_instance

Used by Twilio::Page.

ParticipantContext

Returned by $client->insights->v1->rooms($room_sid)->participants($participant_sid). It makes no request until one of these methods is called.

fetch

my $participant = $client->insights->v1->rooms($room_sid)->participants($participant_sid)->fetch;

Get Video Log Analyzer data for a Room Participant. Returns a ParticipantInstance.

ParticipantInstance

See also Twilio::InstanceResource.

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

Its fields are:

account_sid

Account SID associated with the room.

codecs

Codecs detected from the participant. Can be VP8, H264, or VP9.

duration_sec

Amount of time in seconds the participant was in the room.

edge_location

Name of the edge location the participant connected to. See the list of public edge locations for the possible values. One of ashburn, dublin, frankfurt, singapore, sydney, sao_paulo, roaming, umatilla or tokyo.

end_reason

Reason the participant left the room. See the list of possible values here.

error_code

Errors encountered by the participant.

error_code_url

Twilio error code dictionary link.

join_time

When the participant joined the room. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

leave_time

When the participant left the room. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

media_region

Twilio media region the participant connected to. See the list of possible media servers here. One of us1, us2, au1, br1, ie1, jp1, sg1, in1, de1 or gll.

participant_identity

The application-defined string that uniquely identifies the participant within a Room.

participant_sid

Unique identifier for the participant.

properties

Object containing information about the participant's data from the room. See below for more information.

publisher_info

Object containing information about the SDK name and version. See below for more information.

room_sid

Unique identifier for the room.

status

Status of the room. Can be in_progress or completed. One of in_progress, connected, completed or disconnected.

url

URL of the participant resource.

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.