webtechnicom 4
\Telnyx\Telnyx::setApiKey('KEY01748227DCCA8114C403A3E3231F6FDD_xW3Jg0FMoWM4xc75p70djq');
\Telnyx\OutboundVoiceProfile::All(["page" => ["number" => 1,"size" => 20]]);
{
"data": [
{
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"CA",
"CH",
"DE",
"UK",
"BR",
"AU",
"FR"
]
}
],
"meta": {
"page_number": 2,
"page_size": 25,
"total_pages": 3,
"total_results": 55
}
}
\Telnyx\Telnyx::setApiKey('KEY01748227DCCA8114C403A3E3231F6FDD_xW3Jg0FMoWM4xc75p70djq');
\Telnyx\OutboundVoiceProfile::Create(["billing_group_id" => "6a09cdc3-8948-47f0-aa62-74ac943d6c58","concurrent_call_limit" => 10]);
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+19705555098"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"BR",
"AU"
]
}
}
\Telnyx\Telnyx::setApiKey('KEY01748227DCCA8114C403A3E3231F6FDD_xW3Jg0FMoWM4xc75p70djq');
\Telnyx\OutboundVoiceProfile::Retrieve("id");
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"BR",
"AU"
]
}
}
\Telnyx\Telnyx::setApiKey('KEY01748227DCCA8114C403A3E3231F6FDD_xW3Jg0FMoWM4xc75p70djq');
\Telnyx\OutboundVoiceProfile::Update("id", ["billing_group_id" => "6a09cdc3-8948-47f0-aa62-74ac943d6c58","concurrent_call_limit" => 10]);
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"CA",
"CH",
"DE",
"UK",
"BR",
"AU",
"FR"
]
}
}
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US"
"CA"
"CH"
"DE"
"UK",
"BR",
"AU"
"FR"
]
}
}
\Telnyx\Telnyx::setApiKey('KEY01748227DCCA8114C403A3E3231F6FDD_xW3Jg0FMoWM4xc75p70djq');
$connection = \Telnyx\OutboundVoiceProfile::Retrieve("id");
$connection->delete();
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"BR",
"AU"
"CH"
"UK"
"CA"
"FR"
"DE"
]
}
}
{
"data": {
"billing_group_id": "6a09cdc3-8948-47f0-aa62-74ac943d6c58",
"call_recording": {
"call_recording_caller_phone_numbers": [
"+17708008448"
],
"call_recording_channels": "dual",
"call_recording_format": "mp3",
"call_recording_type": "by_call_phone_number"
},
"concurrent_call_limit": 10,
"connections_count": 12,
"created_at": "2018-02-02T22:25:27.521Z",
"daily_spend_limit": "100.00",
"daily_spend_limit_enabled": true,
"enabled": true,
"id": "1293384261075731499",
"max_destination_rate": 10,
"name": "office",
"record_type": "outbound_voice_profile",
"service_plan": "global",
"tags": [
"office-profile"
],
"traffic_type": "conversational",
"updated_at": "2018-02-02T22:25:27.521Z",
"usage_payment_method": "rate-deck",
"whitelisted_destinations": [
"US",
"CA",
"CH",
"DE",
"UK",
"BR",
"AU",
"FR"
]
}
}