サブアカウントを取得する

このコード・スニペットでは、親アカウントの Subaccounts のリストを取得する方法を説明します。

以下の変数が、便利な方法で必要な値に設定されていることを確認してください:

キー 説明
VONAGE_API_KEY 親アカウントのAPIキー。
VONAGE_API_SECRET 親アカウントのAPIシークレット。

Write the code

Add the following to get-subaccounts.sh:

View full source

Run your code

Save this file to your machine and run it:

bash get-subaccounts.sh

試してみる

コードを実行すると、Subaccountsのリストが取得されます。