Get an emergency number information
This code snippet retrieves an emergency number information.
Example
Replace the following variables in the example code:
| Key | Description |
|---|---|
EMERGENCY_NUMBER | The emergency number. |
Write the code
Add the following to get-number.sh:
curl -X "GET" "https://api.nexmo.com/v1/emergency/numbers/$EMERGENCY_NUMBER" \
-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-number.sh