Download a Scheduled Call Report

Download a specific scheduled call report.

Steps to download a recording file

Request URL

GET {base_url}/{api_path}/call_schedule_report/download?access_token={access_token}

Request parameters

Parameter Required Type Description
id Yes Integer The unique ID of the scheduled call report.
Note: You can query the call report's ID using Query Scheduled Call Report List.

Response parameters

Table 1.
Parameter Type Description
errcode Integer Returned error code.
  • 0: Succeed.
  • Non-zero value: Failed.
Note: You can check the error code and error message in Error Code and Error Message.
errmsg String Returned message.
  • SUCCESS: Succeed.
  • FAILURE: Failed.
file String The scheduled call report.
download_resource_url String The scheduled call report download URL.
Note: The download URL is only valid for 30 minutes.

Examples

Request Example

GET /openapi/v1.0/call_schedule_report/download?id=5&access_token=FZCqUJucsaaUYikWHJA7sCEBjo0z8k5C HTTP/1.1
192.168.5.150:8088

Response Example

HTTP/1.1 200 OK
{
    "errcode": 0,
    "errmsg": "SUCCESS",
    "file": "Support.csv",
    "download_resource_url": "/api/download/Support.csv"
}

Download the scheduled call report

After you get the download URL of the scheduled call report, you need to combine the download URL with the {base_url} to compose a download request, and then send the request to download the scheduled call report.

Download link format

GET {base_url}/{download_resource_url}?access_token={access_token}

Download link example

GET https://192.168.5.150:8088/api/download/Support.csv?access_token=WQMR0cuirhX264oZMa9pV03T9li924NS HTTP/1.1