Search in sources :

Example 1 with TencentSmsParam

use of com.java3y.austin.handler.domain.TencentSmsParam in project austin by ZhongFuCheng3y.

the class TencentSmsScript method send.

@Override
public List<SmsRecord> send(SmsParam smsParam) throws Exception {
    TencentSmsParam tencentSmsParam = accountUtils.getAccount(smsParam.getSendAccount(), SMS_ACCOUNT_KEY, PREFIX, TencentSmsParam.builder().build());
    SmsClient client = init(tencentSmsParam);
    SendSmsRequest request = assembleReq(smsParam, tencentSmsParam);
    SendSmsResponse response = client.SendSms(request);
    return assembleSmsRecord(smsParam, response, tencentSmsParam);
}
Also used : SmsClient(com.tencentcloudapi.sms.v20210111.SmsClient) SendSmsRequest(com.tencentcloudapi.sms.v20210111.models.SendSmsRequest) TencentSmsParam(com.java3y.austin.handler.domain.TencentSmsParam) SendSmsResponse(com.tencentcloudapi.sms.v20210111.models.SendSmsResponse)

Aggregations

TencentSmsParam (com.java3y.austin.handler.domain.TencentSmsParam)1 SmsClient (com.tencentcloudapi.sms.v20210111.SmsClient)1 SendSmsRequest (com.tencentcloudapi.sms.v20210111.models.SendSmsRequest)1 SendSmsResponse (com.tencentcloudapi.sms.v20210111.models.SendSmsResponse)1