public class TencentCloudClient extends AbstractClient
appKey, appSecret, endPoint, region, smsTemplateMap, timeOut| 构造器和说明 |
|---|
TencentCloudClient(SmsClientProperties smsClientProperties) |
| 限定符和类型 | 方法和说明 |
|---|---|
private java.lang.String |
assembleSend(java.lang.String templateId,
java.lang.String[] params,
java.lang.String... phoneNumbers) |
private com.tencentcloudapi.sms.v20210111.SmsClient |
buildClient(java.lang.String templateId)
构建短信发送client
|
java.lang.String |
send()
发送短信,使用配置好的默认短信模版和默认的手机号
|
java.lang.String |
send(java.lang.String templateId,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String... phoneNumbers)
发送短信 指定模版id、参数、手机号
|
java.lang.String |
sendCode(java.lang.String code,
java.lang.String... phoneNumbers)
发送短信验证码。
|
java.lang.String |
sendCode(java.lang.String templateId,
java.lang.String code,
java.lang.String... phoneNumbers)
发送短信验证码。
|
propertiesChangepublic TencentCloudClient(SmsClientProperties smsClientProperties)
public java.lang.String sendCode(java.lang.String code,
java.lang.String... phoneNumbers)
throws com.tencentcloudapi.common.exception.TencentCloudSDKException
IClientsendCode 在接口中 IClientsendCode 在类中 AbstractClientcode - 验证码phoneNumbers - 手机号com.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic java.lang.String sendCode(java.lang.String templateId,
java.lang.String code,
java.lang.String... phoneNumbers)
throws com.tencentcloudapi.common.exception.TencentCloudSDKException
IClientsendCode 在接口中 IClientsendCode 在类中 AbstractClienttemplateId - 模版keycode - 验证码phoneNumbers - 手机号com.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic java.lang.String send()
throws com.tencentcloudapi.common.exception.TencentCloudSDKException
IClientsend 在接口中 IClientsend 在类中 AbstractClientcom.tencentcloudapi.common.exception.TencentCloudSDKExceptionpublic java.lang.String send(java.lang.String templateId,
java.util.Map<java.lang.String,java.lang.String> params,
java.lang.String... phoneNumbers)
throws com.tencentcloudapi.common.exception.TencentCloudSDKException
IClientsend 在接口中 IClientsend 在类中 AbstractClienttemplateId - 模版idparams - 参数phoneNumbers - 手机号com.tencentcloudapi.common.exception.TencentCloudSDKExceptionprivate java.lang.String assembleSend(java.lang.String templateId,
java.lang.String[] params,
java.lang.String... phoneNumbers)
throws com.tencentcloudapi.common.exception.TencentCloudSDKException
com.tencentcloudapi.common.exception.TencentCloudSDKExceptionprivate com.tencentcloudapi.sms.v20210111.SmsClient buildClient(java.lang.String templateId)
templateId - 模版idCopyright © 2023. All rights reserved.