NAME

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

SYNOPSIS

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

for my $participant ($client->video->v1->rooms($room_sid)->participants->read({}, 20)) {
  ...
}
my $participant = $client->video->v1->rooms($room_sid)->participants($sid)->fetch;
$client->video->v1->rooms($room_sid)->participants($sid)->update(\%options);

DESCRIPTION

Participants in video rooms

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->video->v1->rooms($room_sid)->participants. See also Twilio::ListResource.

read

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

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

The options are:

date_created_after

Read only Participants that started after this date in ISO 8601 format. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

date_created_before

Read only Participants that started before this date in ISO 8601 format. A string, or an object with an epoch method. See "iso8601_date_time" in Twilio::Serialize.

identity

Read only the Participants with this User identity value.

status

Read only the participants with this status. Can be: connected or disconnected. For in-progress Rooms the default Status is connected, for completed Rooms only disconnected Participants are returned. One of connected, disconnected or reconnecting.

stream

my $stream = $client->video->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->video->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->video->v1->rooms($room_sid)->participants->get_page($url);

Fetches the page at a URL given by Twilio.

get_context

my $context = $client->video->v1->rooms($room_sid)->participants->get_context($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->video->v1->rooms($room_sid)->participants($sid). It makes no request until one of these methods is called.

fetch

my $participant = $client->video->v1->rooms($room_sid)->participants($sid)->fetch;

Returns a ParticipantInstance.

update

my $participant = $client->video->v1->rooms($room_sid)->participants($sid)->update(\%options);

Returns a ParticipantInstance.

The options are:

status

One of connected, disconnected or reconnecting.

anonymize

my $context = $object->anonymize;

See Twilio::Rest::Video::V1::Room::Participant::Anonymize.

published_tracks

my $list = $object->published_tracks;

my $context = $object->published_tracks($sid);

See Twilio::Rest::Video::V1::Room::Participant::PublishedTrack.

subscribe_rules

my $list = $object->subscribe_rules;

See Twilio::Rest::Video::V1::Room::Participant::SubscribeRules.

subscribed_tracks

my $list = $object->subscribed_tracks;

my $context = $object->subscribed_tracks($sid);

See Twilio::Rest::Video::V1::Room::Participant::SubscribedTrack.

ParticipantInstance

See also Twilio::InstanceResource.

It has fetch, update, anonymize, published_tracks, subscribe_rules and subscribed_tracks, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the RoomParticipant resource.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

duration

The duration in seconds that the participant was connected. Populated only after the participant is disconnected.

end_time

The time when the participant disconnected from the room in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

identity

The application-defined string that uniquely identifies the resource's User within a Room. If a client joins with an existing Identity, the existing client is disconnected. See access tokens and limits for more info.

The URLs of related resources.

room_sid

The SID of the participant's room.

sid

The unique string that we created to identify the RoomParticipant resource.

start_time

The time of participant connected to the room in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

status

One of connected, disconnected or reconnecting.

url

The absolute URL of the 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.