| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
MAX_REQUESTS_PER_HOST
已过时。
http窗口数
|
protected okhttp3.OkHttpClient |
okHttpClient
已过时。
okHttp客户端
|
protected String |
token
已过时。
密钥
|
protected String |
URI_BALANCE
已过时。
预付费账号余额查询路径
|
protected String |
URI_BATCHSUBMIT
已过时。
|
protected String |
URI_DAILY_STATS
已过时。
日统计查询路径
|
protected String |
URI_DELIVRD
已过时。
上行报告路径
|
protected String |
URI_REPORT
已过时。
状态报告路径
|
protected String |
URI_SUBMIT
已过时。
短信提交路径
|
MAX_BATCH_CONTENT, MAX_BATCH_PHONE| 构造器和说明 |
|---|
V2Client(String url,
String username,
String token)
已过时。
|
V2Client(String url,
String username,
String token,
Integer requestPerHost)
已过时。
|
V2Client(String url,
String username,
String token,
Integer requestPerHost,
String fetchURL)
已过时。
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
DeliverResp |
getDeliver()
已过时。
主动获取未读上行
无特殊要求一次最多返回500条
可提供回掉URL自动推送
|
ReportResp |
getReport()
已过时。
主动获取未读短信状态
成功为DELIVRD,无特殊要求一次最多返回500条,可以用msgId来匹配返回的状态
可提供回掉URL自动推送
|
protected okhttp3.Request |
makeRequest(List<Sms> smsContents)
已过时。
|
protected okhttp3.Request |
makeRequest(Sms sms)
已过时。
http请求体
用于短信发送
|
protected okhttp3.Request |
makeRequest(String url)
已过时。
|
BatchSubmitResp |
submit(List<Sms> smsContents)
已过时。
|
boolean |
submit(Sms sms,
java.util.function.Consumer<SubmitResp> consumer)
已过时。
发送提交
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBalance, getDailyStatsprotected okhttp3.OkHttpClient okHttpClient
protected int MAX_REQUESTS_PER_HOST
protected String URI_SUBMIT
@Deprecated protected String URI_BATCHSUBMIT
protected String URI_REPORT
protected String URI_DELIVRD
protected String URI_BALANCE
protected String URI_DAILY_STATS
protected String token
public V2Client(String url, String username, String token, Integer requestPerHost, String fetchURL) throws IllegalArgumentException
url - 短信提交地址username - 用户名token - 密码requestPerHost - http窗口数量fetchURL - 获取状态/上行报告地址IllegalArgumentExceptionpublic V2Client(String url, String username, String token, Integer requestPerHost) throws IllegalArgumentException
public V2Client(String url, String username, String token) throws IllegalArgumentException
public boolean submit(Sms sms, java.util.function.Consumer<SubmitResp> consumer)
public ReportResp getReport()
public DeliverResp getDeliver()
getDeliver 在接口中 BaseApi@Deprecated public BatchSubmitResp submit(List<Sms> smsContents)
protected okhttp3.Request makeRequest(Sms sms)
sms - @Deprecated protected okhttp3.Request makeRequest(List<Sms> smsContents)
smsContents - @Deprecated protected okhttp3.Request makeRequest(String url)
url - Copyright © 2022. All rights reserved.