レポートのキャンセル

このコード・スニペットは、レポートの作成をキャンセルする方法を示している。

キー説明
VONAGE_API_KEY

Your Vonage API key (see it on your dashboard).

VONAGE_API_SECRET

Your Vonage API secret (also available on your dashboard).

REQUEST_ID

The request ID returned when a report was created

Write the code

Add the following to cancel-report.sh:

curl -X DELETE -u "$VONAGE_API_KEY:$VONAGE_API_SECRET" \
     "https://api.nexmo.com/v2/reports/$REQUEST_ID"

View full source

Run your code

Save this file to your machine and run it:

bash cancel-report.sh

試してみる

  1. 交換可能な変数を設定する。 パラメータ 有効期限は以下の通りである。 製品.

  2. スクリプトを実行してレポートをキャンセルする。

参照