import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPUsage = await client.globalIPUsage.retrieve();
console.log(globalIPUsage.data);{
"data": [
{
"timestamp": "2020-01-01T00:00:00.000Z",
"global_ip": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"ip_address": "64.1.2.130"
},
"transmitted": {
"amount": 100000,
"unit": "B"
},
"received": {
"amount": 100000,
"unit": "B"
}
}
]
}import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: 'My API Key',
});
const globalIPUsage = await client.globalIPUsage.retrieve();
console.log(globalIPUsage.data);{
"data": [
{
"timestamp": "2020-01-01T00:00:00.000Z",
"global_ip": {
"id": "a836125b-20b6-452e-9c03-2653f09c7ed7",
"ip_address": "64.1.2.130"
},
"transmitted": {
"amount": 100000,
"unit": "B"
},
"received": {
"amount": 100000,
"unit": "B"
}
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Successful response
Show child attributes
The timestamp of the metric.
"2020-01-01T00:00:00.000Z"
Was this page helpful?