| | |
| | | */ |
| | | public static void send(String phones, String templateId, String templateParas) throws Exception { |
| | | //必填,请参考"开发准备"获取如下数据,替换为实际值 |
| | | String url = "https://smsapi.cn-south-1.myhuaweicloud.com:443/sms/batchSendSms/v1"; //APP接入地址(在控制台"应用管理"页面获取)+接口访问URI |
| | | String appKey = "9I0xrhdGXthf1fv9nn8G3glZ6Zng"; //APP_Key |
| | | String appSecret = "U7WxwX2LVk2YD6KAHxjc9tdnXoM9"; //APP_Secret |
| | | String sender = "8823031523874"; //国内短信签名通道号或国际/港澳台短信通道号 |
| | | String url = "https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1"; //APP接入地址(在控制台"应用管理"页面获取)+接口访问URI |
| | | String appKey = "lU6EsIbXNpe39uoZfL71I4n5QK3q"; //APP_Key |
| | | String appSecret = "1zyUgI0js7LV5S2euJdf0KuJxM6w"; //APP_Secret |
| | | String sender = "8823052930697"; //国内短信签名通道号或国际/港澳台短信通道号 |
| | | // String templateId = "8ff55eac1d0b478ab3c06c3c6a492300"; //模板ID |
| | | |
| | | //条件必填,国内短信关注,当templateId指定的模板类型为通用模板时生效且必填,必须是已审核通过的,与模板类型一致的签名名称 |