com.baidubce.services.vms
Class VmsClient

java.lang.Object
  extended by com.baidubce.AbstractBceClient
      extended by com.baidubce.services.vms.VmsClient

public class VmsClient
extends AbstractBceClient

The client helping user access Voice Message Service


Field Summary
 
Fields inherited from class com.baidubce.AbstractBceClient
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX
 
Constructor Summary
VmsClient(BceClientConfiguration config)
           
 
Method Summary
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
 LaunchCallResponse launchCall(LaunchCallRequest request)
          Lauch a call to deliver voice message, text or voice file can be used in request
 
Methods inherited from class com.baidubce.AbstractBceClient
computeServiceId, getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VmsClient

public VmsClient(BceClientConfiguration config)
Method Detail

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 method
path - the resource path
request - request object that can be serialized to json
responseClass - response object's class object
Returns:
response object deserialized by json


Copyright © 2020. All rights reserved.