Get your configured addresses

This code snippet retrieves your configured addresses.

Example

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