首先登陆聚合云平台
https://www.huaweiita.com/itaportal/
在控制台绑定app以及购买国内短信。
购买成功后打开消息里的短信模板新建一个消息模板
一般来说用的多的是验证码的发送,按照要求填写即可。
审核通过后便可以开始写demo
需要用到以下参数
public HuaweiSMS(){
this.account = Config.getValue("huawei.sms.account");
this.password = Config.getValue("huawei.sms.password");
this.templateId = Config.getValue("huawei.sms.templateId");
this.signature = Config.getValue("huawei.sms.signature");
this.url = Config.getValue("huawei.s