Revoke a secret
To create a new API secret, you must send a DELETE request to the secret management API.
You must have at least one API secret at all times.
| Key | Description |
|---|---|
VONAGE_API_KEY | Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET | Your Vonage API secret (also available on your dashboard). |
ACCOUNT_ID | The account ID to target |
VONAGE_SECRET_ID | The ID of the secret to delete. |
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named delete-secret.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 file named RevokeSecret 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.account with the package containing RevokeSecret:
Prerequisites
Add the following to build.gradle:
Create a file named RevokeSecret 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.account with the package containing RevokeSecret:
Prerequisites
Create a file named RevokeSecret.cs and add the following code:
Add the following to RevokeSecret.cs:
Prerequisites
Create a file named delete-a-secret.php and add the following code:
Run your code
Save this file to your machine and run it:
Prerequisites
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named revoke-a-secret.rb and add the following code:
Run your code
Save this file to your machine and run it: