Package com.vonage.client.conversion
Class ConversionClient
java.lang.Object
com.vonage.client.conversion.ConversionClient
A client for talking to the Vonage Conversion API. The standard way to obtain an instance of this class is to use
VonageClient.getConversionClient().
Allows you to tell Vonage about the reliability of your 2FA communications.
See the Conversion API documentation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsubmitConversion(ConversionRequest.Type type, String messageId, boolean delivered, Date timestamp) Submit a request to the Conversion API indicating whether or not a message was delivered.
-
Constructor Details
-
ConversionClient
-
-
Method Details
-
submitConversion
public void submitConversion(ConversionRequest.Type type, String messageId, boolean delivered, Date timestamp) throws VonageResponseParseException, VonageClientException Submit a request to the Conversion API indicating whether or not a message was delivered.- Parameters:
type- TheConversionRequest.Typetype of com.vonage.client.conversion.messageId- The id of the message that was sent.delivered- A boolean indicating whether or not it was delivered.timestamp- A timestamp of when it was known to be delivered.- Throws:
VonageClientException- if there was a problem with the Vonage request or response objects.VonageResponseParseException- if the response from the API could not be parsed.
-