設定されたアドレスを取得する

このコード・スニペットは、設定されたアドレスを取得します。

Write the code

Add the following to get-addresses.sh:

curl -X "GET" "https://api.nexmo.com/v1/addresses" \
     -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:

bash get-addresses.sh