// $api_key = "V3IQzmbHF6NzP1VsRlmVTDZfSpgnFg"; // // $sender = "918100670408"; // $number = "917439250224"; // $message = "hi"; // $footer = "Sent via mpwa"; // $url = "https://api.whatssapi.co.in/send.php?" // . "api_key=" . urlencode($api_key) // . "&number=" . urlencode($number) // . "&message=" . urlencode($message); // $ch = curl_init($url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($ch); // $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // if (curl_errno($ch)) { // echo "cURL Error: " . curl_error($ch); // } else { // echo "HTTP Code: $httpCode

"; // echo "
";
//     print_r(json_decode($response, true));
//     echo "
"; // } // curl_close($ch); // https://api.whatssapi.co.in/send.php?api_key=V3IQzmbHF6NzP1VsRlmVTDZfSpgnFg&number=917439250224&message=Hello // API Credentials // $api_token = "8NjxcRvALlQoxbnlTcMkmmQPhIvvnCwhtqJ"; // $wp_profile = "8777231191"; // Your registered WhatsApp profile // $mobile_no = "8100670408"; // Recipient mobile number // $message = "Hi, How are you?"; // // Build API URL // $url = "https://whatsapp.hostsmart.in/api/?" . // "process=sendmessage" . // "&api_token=" . urlencode($api_token) . // "&wp_profile=" . urlencode($wp_profile) . // "&mobile_no=" . urlencode($mobile_no) . // "&message_text=" . urlencode($message); // // Initialize cURL // $ch = curl_init(); // curl_setopt($ch, CURLOPT_URL, $url); // curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // curl_setopt($ch, CURLOPT_TIMEOUT, 30); // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // For testing only // // Execute Request // $response = curl_exec($ch); // $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); // if (curl_errno($ch)) { // echo "cURL Error: " . curl_error($ch); // } else { // echo "

HTTP Code: $httpCode

"; // echo "
";
//     print_r(json_decode($response, true));
//     echo "
"; // } // curl_close($ch); Operator Fetch API

Mobile Operator Fetch API