すべての秘密をリストアップ
これは、すべての秘密とその id そして created_at 時間その
秘密の価値は決して公開されない
| キー | 説明 |
|---|---|
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 |
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named list-api-secrets.js and add the following code:
const { Vonage } = require('@vonage/server-sdk');
const vonage = new Vonage({
apiKey: VONAGE_API_KEY,
apiSecret: VONAGE_API_SECRET,
});Write the code
Add the following to list-api-secrets.js:
vonage.secrets.listSecrets(ACCOUNT_ID)
.then((resp) => console.log(resp))
.catch((error) => console.error(error));Run your code
Save this file to your machine and run it:
Prerequisites
Add the following to build.gradle:
Create a class named ListSecrets and add the following code to the main method:
Run your code
We can use the アプリケーション 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 ListSecrets:
Prerequisites
Add the following to build.gradle:
Create a class named ListSecrets and add the following code to the main method:
Run your code
We can use the アプリケーション 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 ListSecrets:
Prerequisites
Create a file named ListAllSecrets.cs and add the following code:
Add the following to ListAllSecrets.cs:
Prerequisites
Create a file named list-secrets.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 list-all-secrets.rb and add the following code:
Run your code
Save this file to your machine and run it: