β

Example of Sending SMS in PHP Using AWS SNS

大康 13 阅读
$client = AWS::createClient('Sns');
$sms = [
	'Message' => 'sms_content',
	'PhoneNumber' => 'sms_recipient',
	'MessageAttributes' => [
		'AWS.SNS.SMS.SenderID' => [
			'DataType' => 'String',
			'StringValue' => 'AD'
		],
		'AWS.SNS.SMS.SMSType' => [
			'DataType' => 'String',
			'StringValue' => 'Transactional'
		],
	]
];
$result = $client->publish($sms);
作者:大康
努力工作,幸福生活!
原文地址:Example of Sending SMS in PHP Using AWS SNS, 感谢原作者分享。

发表评论