Array of recipients’ phone numbers with settings and merge fields are passed, but information (also array) about how many phone numbers have been added to a specific list is returned.
listBatchSubscribeSMS(string $id, array $batch, boolean $update_existing) : struct
Array consisting of:
$my_phone, 'FNAME' => 'Joe'); $batch[] = array('SMS' => $boss_phone, 'FNAME' => 'Boss'); $update_existing = false; $retval = $api->listBatchSubscribeSMS($id, $batch, $update_existing); header("Content-Type: text/plain"); if ($api->errorCode) { echo "Unable to load listBatchSubscribeSMS()!\n"; echo "\tCode=" . $api->errorCode . "\n"; echo "\tMsg=" . $api->errorMessage . "\n"; } else { echo "success:" . $retval['success_count'] . "\n"; echo "errors:" . $retval['error_count'] . "\n"; foreach ($retval['errors'] as $val) { echo "\t*" . $val['phone'] . " failed\n"; echo "\tcode:" . $val['code'] . "\n"; echo "\tmsg :" . $val['message'] . "\n\n"; } }