【发布时间】:2020-01-26 00:01:55
【问题描述】:
我正在编写一个代码,当 ATM 的短信超过 200 英镑时,它会发送短信,但是,当我运行该代码时,我得到了错误
botocore.exceptions.ParamValidationError:参数验证失败: 输入中的未知参数:“PhoneNumber”,必须是以下之一:TopicArn、TargetArn、Message、Subject、MessageStructure、MessageAttributes
我的代码是:
import boto3
client = boto3.client('sns','eu-west-1')
client.publish(PhoneNumber='+44XXXXXXXXXX', Message= 'Hello')
X 引用电话号码的地方
【问题讨论】:
标签: python sms boto3 amazon-sns