HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //home/posscale/public_html/Test.php
$url = � https://api.mondotalk.com/myaccount/v1/login �;
$fields_string = '';
$fields = array(
'id'=>'8340929',
'key'=>'{5B1C32E9-245C-1A82-0279-8EAC912DB675}',
'username'=>'8340929',
'password'=>'9yaPVp@t',
);
foreach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }
rtrim($fields_string,'&');
//initialize the curl
$ch = curl_init();
//set the url, number of POST vars, POST data

curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POST,count($fields));
curl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
//execute post
$result = curl_exec($ch);
$json = json_decode($result);
$records = $json->records;
print_r($records);
The output will be like
Array
(
[0] => stdClass Object
(
[id] => xxx
[name] => xxxxxxx
[first_name] => xxxxxx
[secret] => xxxxxxxx
[email] => test@test.com
[alt_email] => xxxx
[current_balance] => xxxx
[account_type] => PARENT
[account_status] => Normal
[customer_type] => CUSTOMER
[service_type] => Wholesale
[parent_account] => xxxx
[child_account] => Array
(
[0] => xxx
[1] => xxx
)
[sip] => Array
(
[0] => xxxxxx
)
[ratecard_id] => xx
[tenant_ip] => xx.xx.xx.xx
[channels] => 50
[language] => en
[country_id] => 13
[country_name] => Australia
[timezone_id] => 12
[timezone_name] => Australia/Perth
[currency_id] => 1
[currency_name] => AU$
[cc_charge_max_amount] => 100
[cc_charge_invalid_tries] => 4
)
)