sc_send_sms($arr_settings)

This macro receives an array as the configuration parameter that contains the message, recipient, gateway, and API key.

Parameter Description
$arr_settings Array with the information for use in the macro.

 

Array Index Description
to: SMS recipient
message: The content of the text message
gateway: API to be used (clickatell, plivo or twilio)
auth_token: API Authentication Token


Sample 1 - Basic sending Structure:

$arr_settings = array(
	'message' => 
	[
		'to' => '+55999999999',
		'message' => 'Scriptcase SMS'
	],
	'settings' => 
	[
		'gateway' => 'clickatell',
		'auth_token' => '54Cik1-gQ4GqtuN70d4y4w=='
	]);

sc_send_sms($arr_settings);