アプリケーション一覧
このコード・スニペットでは、すべての v1 と v2 Applications をリストアップする方法を説明します。
例
以下の置換可能な値が、便利な方法でサンプルコードに設定されていることを確認する必要があります:
| キー | 説明 |
|---|---|
VONAGE_API_KEY | Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET | Your Vonage API secret (also available on your dashboard). |
Run your code
Save this file to your machine and run it:
Prerequisites
Create a file named list-applications.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 ListApplications and add the following code to the main method:
val client = Vonage {
apiKey(VONAGE_API_KEY)
apiSecret(VONAGE_API_SECRET)
}Write the code
Add the following to the main method of the ListApplications class:
val applications = client.application.listAll()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.application with the package containing ListApplications:
Prerequisites
Add the following to build.gradle:
Create a class named ListApplications 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.application with the package containing ListApplications:
Prerequisites
Create a file named ListApplications.cs and add the following code:
Add the following to ListApplications.cs:
Prerequisites
Create a file named list-applications.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-applications.rb and add the following code:
Run your code
Save this file to your machine and run it: