getTags()
getTags() : array<mixed,string>
Get the initial set of tags to give the batch.
Returns
array<mixed,string> —batch tags
Class whose fields describe a text batch.
We can create two kinds of batches, textual and binary, described
in the child classes MtBatchTextSmsCreate
and
MtBatchBinarySmsCreate
, respectively.
getDeliveryReport() : \Clx\Xms\Api\ReportType
Get the type of delivery report to use for this batch.
the report type
setDeliveryReport(\Clx\Xms\Api\ReportType $deliveryReport) : void
Set the type of delivery report to use for this batch.
\Clx\Xms\Api\ReportType | $deliveryReport | the report type |
setParameters(array<mixed,> $parameters) : void
Set the template parameters.
This property is only relevant if the message body is a template. This is expected to be an associative array mapping parameter keys to associative arrays themselves mapping recipient numbers to substitution strings.
More concretely we may have for the parameterized message "Hello, ${name}!" have
$parameters = [
'name' => [
'123456789' => 'Mary',
'987654321' => 'Joe',
'default' => 'valued customer'
]
];
And the recipient with MSISDN "123456789" would then receive the message "Hello, Mary!".
Note the use of "default" to indicate the substitution for recipients not explicitly given. For example, the recipient "555555555" would receive the message "Hello, valued customer!".
array<mixed,> | $parameters | the template parameter definition |