アドレスの削除
このコード・スニペットはアドレスを削除する。
例
サンプルコードの以下の変数を置き換える:
| キー | 説明 |
|---|---|
ADDRESS_ID | The unique identifier for the address. |
Write the code
Add the following to delete-address.sh:
curl -X "DELETE" "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 delete-address.sh