public class SmsVoicePromptSender extends SmsBase
appid, appkey, httpclient| Constructor and Description |
|---|
SmsVoicePromptSender(int appid,
String appkey) |
SmsVoicePromptSender(int appid,
String appkey,
HTTPClient httpclient) |
| Modifier and Type | Method and Description |
|---|---|
SmsVoicePromptSenderResult |
send(String nationCode,
String phoneNumber,
int prompttype,
int playtimes,
String msg,
String ext)
发送语音短信
|
handleErrorpublic SmsVoicePromptSender(int appid,
String appkey)
public SmsVoicePromptSender(int appid,
String appkey,
HTTPClient httpclient)
public SmsVoicePromptSenderResult send(String nationCode, String phoneNumber, int prompttype, int playtimes, String msg, String ext) throws HTTPException, org.json.JSONException, IOException
nationCode - 国家码,如 86 为中国phoneNumber - 不带国家码的手机号prompttype - 类型,目前固定值为2playtimes - 播放次数msg - 语音通知消息内容ext - "扩展字段,原样返回"HTTPException - http status exceptionorg.json.JSONException - json parse exceptionIOException - network problemCopyright © 2018. All rights reserved.