import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const otaUpdates = await client.otaUpdates.list();
console.log(otaUpdates.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ota_update",
"sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"type": "sim_card_network_preferences",
"status": "in-progress",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const otaUpdates = await client.otaUpdates.list();
console.log(otaUpdates.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "ota_update",
"sim_card_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"type": "sim_card_network_preferences",
"status": "in-progress",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z"
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Consolidated filter parameter for OTA updates (deepObject style). Originally: filter[status], filter[sim_card_id], filter[type]
Show child attributes
Filter by a specific status of the resource's lifecycle.
in-progress, completed, failed "in-progress"
The SIM card identification UUID.
Filter by type.
sim_card_network_preferences "sim_card_network_preferences"
Successful response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
"ota_update"
The identification UUID of the related SIM card resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
Represents the type of the operation requested. This will relate directly to the source of the request.
sim_card_network_preferences "sim_card_network_preferences"
in-progress, completed, failed "in-progress"
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"
Was this page helpful?