public class SendSmsRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
SendSmsRequest() |
SendSmsRequest(SendSmsRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getExtendCode()
Get SMS code number extension, which is not activated by default.
|
String[] |
getPhoneNumberSet()
Get Target mobile number in the E.164 standard in the format of +[country/region code][mobile number].
|
String |
getSenderId()
Get For Global SMS, if you have applied for a separate `SenderId`, this parameter is required.
|
String |
getSessionContext()
Get User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
|
String |
getSignName()
Get SMS signature information which is encoded in UTF-8.
|
String |
getSmsSdkAppId()
Get The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 2400006666.
|
String |
getTemplateId()
Get Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template).
|
String[] |
getTemplateParamSet()
Get Template parameter.
|
void |
setExtendCode(String ExtendCode)
Set SMS code number extension, which is not activated by default.
|
void |
setPhoneNumberSet(String[] PhoneNumberSet)
Set Target mobile number in the E.164 standard in the format of +[country/region code][mobile number].
|
void |
setSenderId(String SenderId)
Set For Global SMS, if you have applied for a separate `SenderId`, this parameter is required.
|
void |
setSessionContext(String SessionContext)
Set User session content, which can carry context information such as user-side ID and will be returned as-is by the server.
|
void |
setSignName(String SignName)
Set SMS signature information which is encoded in UTF-8.
|
void |
setSmsSdkAppId(String SmsSdkAppId)
Set The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 2400006666.
|
void |
setTemplateId(String TemplateId)
Set Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template).
|
void |
setTemplateParamSet(String[] TemplateParamSet)
Set Template parameter.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public SendSmsRequest()
public SendSmsRequest(SendSmsRequest source)
public String[] getPhoneNumberSet()
public void setPhoneNumberSet(String[] PhoneNumberSet)
PhoneNumberSet
- Target mobile number in the E.164 standard in the format of +[country/region code][mobile number]. Up to 200 mobile numbers are supported in one request (which should be all Chinese mainland mobile numbers or all global mobile numbers). For example, +60198890000, which has a + sign followed by 60 (country/region code) and then by 198890000 (mobile number).public String getSmsSdkAppId()
public void setSmsSdkAppId(String SmsSdkAppId)
SmsSdkAppId
- The SMS `SdkAppId` generated after an application is added in the [SMS console](https://console.cloud.tencent.com/smsv2/app-manage), such as 2400006666.public String getTemplateId()
public void setTemplateId(String TemplateId)
TemplateId
- Template ID, which can be viewed on the **Body Templates** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-template). You must enter the ID of an approved template.public String getSignName()
public void setSignName(String SignName)
SignName
- SMS signature information which is encoded in UTF-8. You must enter an approved signature (such as Tencent Cloud). The signing information can be viewed on the **Signatures** page in [Global SMS](https://console.cloud.tencent.com/smsv2/isms-sign).public String[] getTemplateParamSet()
public void setTemplateParamSet(String[] TemplateParamSet)
TemplateParamSet
- Template parameter. If there is no template parameter, leave this field empty.
public String getExtendCode()
public void setExtendCode(String ExtendCode)
ExtendCode
- SMS code number extension, which is not activated by default. If you need to activate it, you can contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).public String getSessionContext()
public void setSessionContext(String SessionContext)
SessionContext
- User session content, which can carry context information such as user-side ID and will be returned as-is by the server. Note that the length must be less than 512 bytes.public String getSenderId()
public void setSenderId(String SenderId)
SenderId
- For Global SMS, if you have applied for a separate `SenderId`, this parameter is required. By default, the public `SenderId` is used, in which case you don't need to enter this parameter.
Note: If your monthly usage reaches the specified threshold, you can apply for an independent `SenderId`. For more information, contact [SMS Helper](https://intl.cloud.tencent.com/document/product/382/3773?from_cn_redirect=1#.E6.8A.80.E6.9C.AF.E4.BA.A4.E6.B5.81).Copyright © 2024. All rights reserved.