アプリケーション一覧

このコード・スニペットでは、すべての 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).

Write the code

Add the following to list-applications.sh:

curl -X "GET" "https://api.nexmo.com/v2/applications" \
     -H 'Content-Type: application/json' \
     -u "$VONAGE_API_KEY:$VONAGE_API_SECRET"

View full source

Run your code

Save this file to your machine and run it:

./list-applications.sh