すべての通話の情報を取得する

全コールの情報を取得する方法を示すコード・スニペット。

Prerequisites

Execute the following command at your terminal prompt to create the JWT for authentication:

export JWT=$(nexmo jwt:generate $PATH_TO_PRIVATE_KEY application_id=$NEXMO_APPLICATION_ID)

Write the code

Add the following to retrieve-info-for-all-calls.sh:

curl "https://api.nexmo.com/v1/calls" \
  -H "Authorization: Bearer $JWT" \

View full source

Run your code

Save this file to your machine and run it:

bash retrieve-info-for-all-calls.sh

試してみる

サンプルコードを実行して、すべてのコールの情報を取得する。