类 SendSms
java.lang.Object
net.linksfield.cube.partnersdk.domain.BaseRequest
net.linksfield.cube.partnersdk.sdk.modules.sms.SendSms
public class SendSms extends BaseRequest
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classSendSms.Message -
字段概要
从类继承的字段 net.linksfield.cube.partnersdk.domain.BaseRequest
extendHeaders, httpMethod, nonce, timestamp -
构造器概要
构造器 构造器 说明 SendSms(int nonce, List<String> simIds, SendSms.Message message) -
方法概要
修饰符和类型 方法 说明 voidaddBody(Map<String,Object> body)由子类实现 添加post内容体voidaddQueryParams(com.google.common.collect.Multimap<String,String> queryParams)由子类实现 添加查询参数voidaddUrlSignatureParameters(Map<String,Object> mapToSign)static SendSmsBuilderbuilder(int nonce)StringrequestUrl(EndpointPropertiesProxy endpointPropertiesProxy)由子类返回需要的Url从类继承的方法 net.linksfield.cube.partnersdk.domain.BaseRequest
addExtendHeader, addOptionalQueryParam, setContentType
-
构造器详细资料
-
SendSms
Notes
- The sending is asynchronous, and the request may fail
- A maximum of 100 SIMs are supported
- Each message contains a maximum of 140 characters
- The retention time of the SMS in SMS-Center varies from 24 hours to 7 days
- Not all SIMs can receive SMS via this API. For details, consult FAE
Attention
- Sending may fail in below situations and the SMS will NOT be sent:
- SMS service is not enabled for the organisation (consult FAE)
- SIM IDs provided do not belong to the organisation
- SIM ID duplicates
- SMS sending via API is not supported for some SIMs
- Idempotence
- If same nonce, same sim_ids and the same sms message is sent in 2 requests within 10s, they will be treated as the same request, and the same job id will be returned. The actual sending will only occur once.
- When a request is timeout, you may use above method to retrieve the job id.
- Otherwise, it will be treated as a new request and the sms will be sent again.
- Result
- Response of this API indicates the receipt of the request only. It does not indicate the status of sending of the SMS.
- To request the status of the sending:
- List all SMS by Request ID (MT)
- List all SMS by SIM ID(MT)
- 参数:
nonce-simIds- iccidsmessage- type and content
-
-
方法详细资料
-
builder
-
requestUrl
从类复制的说明:BaseRequest由子类返回需要的Url- 指定者:
requestUrl在类中BaseRequest- 返回:
-
addUrlSignatureParameters
- 指定者:
addUrlSignatureParameters在类中BaseRequest
-
addQueryParams
从类复制的说明:BaseRequest由子类实现 添加查询参数- 指定者:
addQueryParams在类中BaseRequest
-
addBody
从类复制的说明:BaseRequest由子类实现 添加post内容体- 指定者:
addBody在类中BaseRequest
-