public class TtsVoiceSender extends SmsBase
appid, appkey, httpclient| Constructor and Description |
|---|
TtsVoiceSender(int appid,
String appkey) |
TtsVoiceSender(int appid,
String appkey,
HTTPClient httpclient) |
| Modifier and Type | Method and Description |
|---|---|
TtsVoiceSenderResult |
send(String nationCode,
String phoneNumber,
int templateId,
ArrayList<String> params,
int playtimes,
String ext)
指定模板发送语音短信
|
TtsVoiceSenderResult |
send(String nationCode,
String phoneNumber,
int templateId,
String[] params,
int playtimes,
String ext) |
handleErrorpublic TtsVoiceSender(int appid,
String appkey)
public TtsVoiceSender(int appid,
String appkey,
HTTPClient httpclient)
public TtsVoiceSenderResult send(String nationCode, String phoneNumber, int templateId, ArrayList<String> params, int playtimes, String ext) throws HTTPException, org.json.JSONException, IOException
nationCode - 国家码,如86为中国phoneNumber - 不带国家码的手机号templateId - 信息内容params - 模板参数列表playtimes - 播放次数ext - 扩展字段,原样返回HTTPException - http status exceptionorg.json.JSONException - json parse exceptionIOException - network problempublic TtsVoiceSenderResult send(String nationCode, String phoneNumber, int templateId, String[] params, int playtimes, String ext) throws HTTPException, org.json.JSONException, IOException
HTTPExceptionorg.json.JSONExceptionIOExceptionCopyright © 2018. All rights reserved.