public class NotifyServiceImpl extends BaseServiceImpl implements NotifyService
apiInfoList, serviceInfo| Modifier | Constructor and Description |
|---|---|
protected |
NotifyServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
CommonResponse<TaskAppendResult> |
batchAppend(BatchAppendRequest request)
append phone to task
|
CommonResponse<BasicResourceResult> |
commitVoiceResourceUpload(UploadVoiceResourceRequest request)
commit upload request
you should get a signed url and then send a http request by this signed url,
finally you can invoke this function to commit your request
|
CommonResponse<TaskAppendResult> |
createTask(CreateTaskRequest request)
create task
|
CommonResponse<BasicResourceResult> |
createTtsResource(CreateTtsResourceRequest request)
create tts resource
|
CommonResponse<BasicResourceResult> |
deleteResourceByResourceKey(String resourceKey)
delete resource by key
|
CommonResponse<BasicResourceResult> |
fetchVoiceResourceByUrl(FetchVoiceResourceRequest request)
fetch voice resource from public url
|
CommonResponse<BasicResourceResult> |
generateVoiceResourceUploadUrl(UploadVoiceResourceRequest request)
get a signed url
use with commitVoiceResourceUpload
1、get a signed url;
2、upload a voice resource — send a put http request to generated url;
3、invoke function of commitVoiceResourceUpload to commit request
|
static NotifyServiceImpl |
getInstance() |
CommonResponse |
pauseTask(String taskOpenId)
pause task
|
CommonResponse |
resumeTask(String taskOpenId)
resume task
|
CommonResponse<SingleAppendResult> |
singleBatchAppend(SingleAppendRequest request)
create a single call
|
CommonResponse |
singleCancel(String singleOpenId)
cancel a single call
|
CommonResponse<SingleInfo> |
singleInfo(String singleOpenId)
query a single call info
|
CommonResponse |
stopTask(String taskOpenId)
stop task
|
CommonResponse<TaskAppendResult> |
updateTask(EditTaskRequest request)
update task info
|
getAccessKey, getApiInfoList, getHttpClient, getISigner, getRegion, getSecretKey, getServiceInfo, getSessionToken, getSignUrl, json, post, proto, put, putData, putDataWithResponse, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAccessKey, getRegion, getSecretKey, getSessionToken, getSignUrl, json, post, proto, put, putData, query, setAccessKey, setClientNoReuse, setConnectionTimeout, setHost, setHttpClient, setRegion, setScheme, setSecretKey, setServiceInfo, setSessionToken, setSocketTimeout, signSts2public static NotifyServiceImpl getInstance()
public CommonResponse<TaskAppendResult> createTask(CreateTaskRequest request) throws Exception
NotifyServicecreateTask in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse<TaskAppendResult> batchAppend(BatchAppendRequest request) throws Exception
NotifyServicebatchAppend in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse<TaskAppendResult> updateTask(EditTaskRequest request) throws Exception
NotifyServiceupdateTask in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse pauseTask(String taskOpenId) throws Exception
NotifyServicepauseTask in interface NotifyServicetaskOpenId - — task idException - exceptionpublic CommonResponse resumeTask(String taskOpenId) throws Exception
NotifyServiceresumeTask in interface NotifyServicetaskOpenId - — task idException - exceptionpublic CommonResponse stopTask(String taskOpenId) throws Exception
NotifyServicestopTask in interface NotifyServicetaskOpenId - — task idException - exceptionpublic CommonResponse<SingleAppendResult> singleBatchAppend(SingleAppendRequest request) throws Exception
NotifyServicesingleBatchAppend in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse<SingleInfo> singleInfo(String singleOpenId) throws Exception
NotifyServicesingleInfo in interface NotifyServicesingleOpenId - — singleIdException - exceptionpublic CommonResponse singleCancel(String singleOpenId) throws Exception
NotifyServicesingleCancel in interface NotifyServicesingleOpenId - — singleIdException - exceptionpublic CommonResponse<BasicResourceResult> fetchVoiceResourceByUrl(FetchVoiceResourceRequest request) throws Exception
NotifyServicefetchVoiceResourceByUrl in interface NotifyServicerequest - -- requestException - exceptionpublic CommonResponse<BasicResourceResult> createTtsResource(CreateTtsResourceRequest request) throws Exception
NotifyServicecreateTtsResource in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse<BasicResourceResult> deleteResourceByResourceKey(String resourceKey) throws Exception
NotifyServicedeleteResourceByResourceKey in interface NotifyServiceresourceKey - — keyException - exceptionpublic CommonResponse<BasicResourceResult> generateVoiceResourceUploadUrl(UploadVoiceResourceRequest request) throws Exception
NotifyServicegenerateVoiceResourceUploadUrl in interface NotifyServicerequest - — requestException - exceptionpublic CommonResponse<BasicResourceResult> commitVoiceResourceUpload(UploadVoiceResourceRequest request) throws Exception
NotifyServicecommitVoiceResourceUpload in interface NotifyServiceExceptionCopyright © 2022. All rights reserved.