NAME

Twilio::Rest::Sync::V1::Service::SyncStream::StreamMessage - The StreamMessage resource

SYNOPSIS

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

my $stream_message = $client->sync->v1->services($service_sid)->sync_streams($stream_sid)->stream_messages->create($data);

DESCRIPTION

This file holds StreamMessageList and StreamMessageInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

StreamMessageList

Returned by $client->sync->v1->services($service_sid)->sync_streams($stream_sid)->stream_messages. See also Twilio::ListResource.

create

my $stream_message = $client->sync->v1->services($service_sid)->sync_streams($stream_sid)->stream_messages->create($data);

Create a new Stream Message. Returns a StreamMessageInstance.

The required values are:

$data

A JSON string that represents an arbitrary, schema-less object that makes up the Stream Message body. Can be up to 4 KiB in length. A hash or array reference, or a string of JSON.

StreamMessageInstance

See also Twilio::InstanceResource.

Its fields are:

data

An arbitrary, schema-less object that contains the Stream Message body. Can be up to 4 KiB in length.

sid

The unique string that we created to identify the Stream Message 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.