| 限定符和类型 | 字段和说明 |
|---|---|
private int |
maxSize
已过时。
|
MAX_REQUESTS_PER_HOST, okHttpClient, token, URI_BALANCE, URI_BATCHSUBMIT, URI_DAILY_STATS, URI_DELIVRD, URI_REPORT, URI_SUBMITMAX_BATCH_CONTENT, MAX_BATCH_PHONE| 构造器和说明 |
|---|
V4Client(String url,
String spId,
String spKey) |
V4Client(String url,
String spId,
String spKey,
Integer requestPerHost) |
V4Client(String url,
String spId,
String spKey,
Integer requestPerHost,
String fetchURL)
初始化
|
| 限定符和类型 | 方法和说明 |
|---|---|
BalanceResp |
getBalance()
主动获取预付费发送账号余额
预付费账号剩余余额查询。
|
DailyStatsResp |
getDailyStats(String date)
V4接口 获取发送账号日统计
|
protected okhttp3.Request |
makeRequest(List<Sms> smsContents)
已过时。
|
protected okhttp3.Request |
makeRequest(Sms sms)
http请求体
用于短信发送
|
protected okhttp3.Request |
makeRequest(String url)
http请求体
用于非发送接口
|
private okhttp3.Request |
makeRequest(String url,
String body)
建立请求体
|
void |
setMaxSize(int maxSize) |
getDeliver, getReport, submit, submit@Deprecated private int maxSize
public V4Client(String url, String spId, String spKey, Integer requestPerHost, String fetchURL) throws IllegalArgumentException
url - 短信接口提交地址spId - 我方提供的发送账号的唯一标识spKey - 我方提供的发送账号的预共享密钥的requestPerHost - http窗口数量fetchURL - 获取状态/上行报告地址IllegalArgumentExceptionpublic V4Client(String url, String spId, String spKey, Integer requestPerHost) throws IllegalArgumentException
public V4Client(String url, String spId, String spKey) throws IllegalArgumentException
public BalanceResp getBalance()
public DailyStatsResp getDailyStats(String date)
BaseApidate - 查询的日期 日期格式化:yyyyMMddprotected okhttp3.Request makeRequest(Sms sms)
makeRequest 在类中 V2Clientsms - @Deprecated protected okhttp3.Request makeRequest(List<Sms> smsContents)
makeRequest 在类中 V2ClientsmsContents - public void setMaxSize(int maxSize)
protected okhttp3.Request makeRequest(String url)
makeRequest 在类中 V2Clienturl - Copyright © 2022. All rights reserved.