Home › Forums › NanoTel › Notification Settings › Reply To: Notification Settings

Nishit Shan
Participant
Post count: 2022

Hello Aanrey,

I sent them my message:
————————————————————————————————————
————————————————————————————————————
Below if the code i am using:
—————————————————————————————————————–

$key = "hH5_APRI8TzKqwOq9XOVrEFcsU_J";
$post_data = [
"privateKey" => $key,

];
$port_in_url = ‘https://services.inteliquent.com/Services/2.0.0/tnReservedList’;
$token_id = $this->getToken();
$response = Http::withToken($token_id)
->withHeaders([
‘Content-Type’ => ‘application/json’,
‘charset’ => ‘UTF-8’,
])
->timeout(10)
->post($port_in_url, $post_data);
if ($response->successful()) {
$objects = [];
$response = $response->json();
foreach ($response[‘reservedTns’] as $key => $tnResult) {
$objects[] = (object) [
"tn" => $tnResult[‘telephoneNumber’],
"tnFeature" => [
"callerId" => [
"cnamDip" => $tnResult[‘cnamAllowed’] === ‘Y’ ? ‘Y’ : ‘N’
],
]
];
}

$token_id = $this->getToken();
$postData = [
"privateKey" => $key,
"tnOrder" => [
"tnList" => [
"tnItem" => $objects
]
]
];

$port_in_url = ‘https://services.inteliquent.com/Services/2.0.0/tnOrder’;
$response = Http::withToken($token_id)
->withHeaders([
‘Content-Type’ => ‘application/json’,
‘charset’ => ‘UTF-8’,
])
->timeout(1000)
->post($port_in_url, $postData);
if ($response->successful()) {
return $response->json();
}
}
—————————————————————————————————————–

I executed this code after checking the inteliquent dashboard. There was no reserved number so i executed the code . But i am wondering how the unwanted number got purchased if there was no number showing on Inteliquent dashboard.

——————————————————————————————-