public class VoiceFileUploader extends SmsBase
| Modifier and Type | Class and Description |
|---|---|
static class |
VoiceFileUploader.ContentType |
appid, appkey, httpclient| Constructor and Description |
|---|
VoiceFileUploader(int appid,
String appkey) |
VoiceFileUploader(int appid,
String appkey,
HTTPClient httpclient) |
| Modifier and Type | Method and Description |
|---|---|
VoiceFileUploaderResult |
upload(byte[] fileContent,
VoiceFileUploader.ContentType contentType)
上传语音文件
|
handleErrorpublic VoiceFileUploader(int appid,
String appkey)
public VoiceFileUploader(int appid,
String appkey,
HTTPClient httpclient)
public VoiceFileUploaderResult upload(byte[] fileContent, VoiceFileUploader.ContentType contentType) throws HTTPException, org.json.JSONException, IOException
fileContent - 语音文件内容contentType - 语音文件类型HTTPException - http status exceptionorg.json.JSONException - json parse exceptionIOException - network problemCopyright © 2018. All rights reserved.