import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const detailRecordsReport = await client.wireless.detailRecordsReports.create();
console.log(detailRecordsReport.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "detail_records_report",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"start_time": "2018-02-02T22:25:27.521Z",
"end_time": "2018-02-02T22:25:27.521Z",
"status": "pending",
"report_url": "http://example.com"
}
}Asynchronously create a report containing Wireless Detail Records (WDRs) for the SIM cards that consumed wireless data in the given time period.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const detailRecordsReport = await client.wireless.detailRecordsReports.create();
console.log(detailRecordsReport.data);{
"data": {
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "detail_records_report",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"start_time": "2018-02-02T22:25:27.521Z",
"end_time": "2018-02-02T22:25:27.521Z",
"status": "pending",
"report_url": "http://example.com"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
"detail_records_report"
ISO 8601 formatted date-time indicating when the resource was created.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating when the resource was updated.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating the start time.
"2018-02-02T22:25:27.521Z"
ISO 8601 formatted date-time indicating the end time.
"2018-02-02T22:25:27.521Z"
Indicates the status of the report, which is updated asynchronously.
pending, complete, failed, deleted "pending"
The URL where the report content, when generated, will be published to.
"http://example.com"
Was this page helpful?