import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const wirelessBlocklists = await client.wirelessBlocklists.list();
console.log(wirelessBlocklists.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireless_blocklist",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"name": "My wireless blocklist.",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}Get all Wireless Blocklists belonging to the user.
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const wirelessBlocklists = await client.wirelessBlocklists.list();
console.log(wirelessBlocklists.data);{
"data": [
{
"id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"record_type": "wireless_blocklist",
"created_at": "2018-02-02T22:25:27.521Z",
"updated_at": "2018-02-02T22:25:27.521Z",
"name": "My wireless blocklist.",
"type": "country",
"values": [
"CA",
"MX",
"US"
]
}
],
"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.
The page number to load.
x >= 1The size of the page.
1 <= x <= 250The name of the Wireless Blocklist.
When the Private Wireless Gateway was last updated.
Values to filter on (inclusive).
Successful Response
Show child attributes
Identifies the resource.
"6a09cdc3-8948-47f0-aa62-74ac943d6c58"
"wireless_blocklist"
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"
The wireless blocklist name.
"My wireless blocklist."
The type of the wireless blocklist.
country, mcc, plmn "country"
Values to block. The values here depend on the type of Wireless Blocklist.
ISO 3166-1 Alpha-2 Country Code.
"US"
["CA", "MX", "US"]Was this page helpful?