com.baidubce.services.vms
Class VmsClient
java.lang.Object
com.baidubce.AbstractBceClient
com.baidubce.services.vms.VmsClient
public class VmsClient
- extends AbstractBceClient
The client helping user access Voice Message Service
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VmsClient
public VmsClient(BceClientConfiguration config)
launchCall
public LaunchCallResponse launchCall(LaunchCallRequest request)
- Lauch a call to deliver voice message, text or voice file can be used in
request
- Parameters:
request - contain's all parameters used to launch a voice notification
- Returns:
- response contain's the call's record id
invokeJsonCall
protected <T extends AbstractBceResponse> T invokeJsonCall(HttpMethodName method,
String path,
Object request,
Class<T> responseClass)
- a helper method use to invoke json rest api method
- Type Parameters:
T - - Parameters:
method - http methodpath - the resource pathrequest - request object that can be serialized to jsonresponseClass - response object's class object
- Returns:
- response object deserialized by json
Copyright © 2020. All rights reserved.