Package com.vonage.client.redact
Class RedactClient
java.lang.Object
com.vonage.client.AbstractClient
com.vonage.client.redact.RedactClient
public class RedactClient extends AbstractClient
A client for talking to the Vonage Redact API. The standard way to obtain an instance of this class is to use
VonageClient.getRedactClient().-
Field Summary
-
Constructor Summary
Constructors Constructor Description RedactClient(HttpWrapper httpWrapper) -
Method Summary
Modifier and Type Method Description voidredactTransaction(RedactRequest redactRequest)Submit a request to the Redact API to redact a transaction.voidredactTransaction(java.lang.String id, RedactRequest.Product product)Submit a request to the Redact API to redact a transaction.voidredactTransaction(java.lang.String id, RedactRequest.Product product, RedactRequest.Type type)Submit a request to the Redact API to redact a transaction.
-
Constructor Details
-
Method Details
-
redactTransaction
public void redactTransaction(java.lang.String id, RedactRequest.Product product) throws VonageResponseParseException, VonageClientExceptionSubmit a request to the Redact API to redact a transaction.- Parameters:
id- The transaction id to redact.product- TheRedactRequest.Productwhich corresponds to the transaction.- 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.
-
redactTransaction
public void redactTransaction(java.lang.String id, RedactRequest.Product product, RedactRequest.Type type) throws VonageResponseParseException, VonageClientExceptionSubmit a request to the Redact API to redact a transaction.- Parameters:
id- The transaction id to redact.product- TheRedactRequest.Productwhich corresponds to the transaction.type- TheRedactRequest.Typewhich is required if redacting SMS data.- 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.
-
redactTransaction
public void redactTransaction(RedactRequest redactRequest) throws VonageResponseParseException, VonageClientExceptionSubmit a request to the Redact API to redact a transaction.- Parameters:
redactRequest- aRedactRequestobject which contains the request parameters.- 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.
-