【发布时间】:2020-03-30 11:25:03
【问题描述】:
我正在尝试在我的 API 调用中设置发件人 ID,但它被忽略了。 我应该把它放在哪里/正确的属性名称是什么? 我在美国,以下是我尝试设置发件人 ID 的两个地方(我尝试了 SenderID 和 DefaultSenderID)
$result = $SnSclient->SetSMSAttributes([
'attributes' => [
'DefaultSMSType' => 'Transactional',
'AWS.SNS.SMS.SenderID' =>'CompanyBrand'
],
]);
var_dump($result);//this currently gives an error (method call, not the var_dump)
$result = $SnSclient->publish([
'Message' => $message,
'PhoneNumber' => $phone,
'SenderID' => 'CompanyBrand'
]);
【问题讨论】:
标签: php amazon-web-services amazon-sns aws-php-sdk