这份文档还在翻译中,预期年底前完成。欢迎您提供宝贵的意见及建议。
Download report file
This code snippet shows you how to retrieve a report file. The report file is a Zipped CSV file containing all the records for the request.
Example
Key | Description |
---|---|
VONAGE_API_KEY |
Your Vonage API key (see it on your dashboard). |
VONAGE_API_SECRET |
Your Vonage API secret (also available on your dashboard). |
FILE_ID |
The file ID of the report to retrieve. |
Try it out
- Set the replaceable variables for your account.
-
Set the
FILE_ID
. You can obtain this from the details of a get report status or list reports call. The response will contain JSON similar to:"download_report": { "href": "https://api.nexmo.com/v3/media/84a14d67-1234-5678-9012-ac042b16092a" }
In this case
84a14d67-1234-5678-9012-ac042b16092a
is theFILE_ID
. Run the script to download a Zip file containing the report in CSV format.