Redact using an ID
In this code snippet you see how to redact a message using an ID
Example
Replace the following variables in the example code:
| Key | Description |
|---|---|
VONAGE_REDACT_ID | The ID of the data record that you'd like to redact |
VONAGE_REDACT_TYPE | The product that the ID belongs to e.g. |
Prerequisites
Create a file named transaction.js and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Add the following to build.gradle:
Create a class named RedactSms and add the following code to the main method:
Run your code
We can use the application plugin for Gradle to simplify the running of our application. Update your build.gradle with the following:
Run the following gradle command to execute your application, replacing com.vonage.quickstart.kt.redact with the package containing RedactSms:
Prerequisites
Add the following to build.gradle:
Create a class named RedactATransaction and add the following code to the main method:
Run your code
We can use the application plugin for Gradle to simplify the running of our application. Update your build.gradle with the following:
Run the following gradle command to execute your application, replacing com.vonage.quickstart.redact with the package containing RedactATransaction:
Prerequisites
Create a file named RedactTransaction.cs and add the following code:
Add the following to RedactTransaction.cs:
Prerequisites
Create a file named redact.php and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named redact.rb and add the following code:
Run your code
Save this file to your machine and run it: