Api Details
API URL:- https://piesms.com/api/send.php
Parameters:- {"secret_id":"9889","password":"123","sender_id":"ssak_0001","subject":"2e12","message":"adsdas","numbers":["9889370727","7570096963","7784903082"]}
Method:- POST
Parameters Description:-
secret_id (string):- When User Register Then Genrate Unique a Secret Key
password (string):- User Login Password
sender_id (string):- When User Create Organization Then Each Organization Generate a Unique Sender Key
subject (string):- Enter subject
message (string):- Enter message
phone (array):- Enter Mobile Numbers
Example:-
            <?php
                $secret_id = urlencode('Your secretKey');
                $password = urlencode('Your password');
                $sender_id = urlencode('Your senderKey');
                $numbers = array(9889370727, 7784903082);
                $subject = rawurlencode('This is your subject');
                $message = rawurlencode('This is your message');
                // Prepare data for POST request
                $data = array('secret_id'=>$secret_id,'password'=>$password,'sender_id'=>$sender_id,'subject'=>$subject,'message'=>$message,'numbers'=>$numbers);
                // Send the POST request with cURL
                $ch = curl_init('https://piesms.com/api/send.php');
                curl_setopt($ch, CURLOPT_POST, true);
                curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
                curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($ch, CURLOPT_POST, count($data));
                curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json'));
                $response = curl_exec($ch);
                curl_close($ch);
                // Process your response here
                echo $response;
            ?>
            

Responce:-
Success:-{"data":"Send Successfull","status":1}
Faild (Secret ID is Blank):-{"data":"Please Enter Secret Id","status":0}
Faild (Password is Blank):-{"data":"Please Enter Password","status":0}
Faild (Sender ID is Blank):-{"data":"Please Enter Sender Id","status":0}
Faild (Subject is Blank):-{"data":"Please Enter Subject","status":0}
Faild (Message is Blank):-{"data":"Please Enter Message","status":0}
Faild (Numbers is Blank):-{"data":"Sending Faild","status":0}
Faild (Secret Id Or Password Incorrect):-{"data":"Secret Id Or Password Incorrect","status":0}
Faild (Sender Id Incorrect):-{"data":"Sender Id Incorrect","status":0}