Get details of an address
This code snippet retrieves details of an address.
Example
Replace the following variables in the example code:
| Key | Description |
|---|---|
ADDRESS_ID | The unique identifier for the address. |
Write the code
Add the following to get-address.sh:
curl -X "GET" "https://api.nexmo.com/v1/addresses/$ADDRESS_ID" \
-H 'Content-Type: application/json' \
-u "$VONAGE_API_KEY:$VONAGE_API_SECRET"Run your code
Save this file to your machine and run it:
bash get-address.sh