| | |
| | | public static void sendSms(String code,String phone,String sender,String templateId) throws Exception{ |
| | | //必填,请参考"开发准备"获取如下数据,替换为实际值 |
| | | String url = "https://smsapi.cn-north-4.myhuaweicloud.com:443/sms/batchSendSms/v1"; //APP接入地址+接口访问URI |
| | | String appKey = "7TK0Mo5YEF220G1pNF6fOwH6uEql"; //APP_Key |
| | | String appSecret = "HTqSmIR0buStzPwSQrhfFNE7psCm"; //APP_Secret |
| | | String appKey = "1111"; //APP_Key |
| | | String appSecret = "1111"; //APP_Secret |
| | | |
| | | //条件必填,国内短信关注,当templateId指定的模板类型为通用模板时生效且必填,必须是已审核通过的,与模板类型一致的签名名称 |
| | | //国际/港澳台短信不用关注该参数 |