Retrieve information for all calls

A code snippet that shows how to retrieve information for all calls.

Example

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

Try it out

Run the example code to retrieve information for all calls.