Empowering Minds with Tech Knowledge.

How to send message using WhatsApp API?

How to send message using WhatsApp API?

03/February/2025 19:43    Comments (0)     Share:        Bookmark

You can use the below PHP code to send a message using our Whatsapp API.  

$msg=urlencode("$msg");
$img1=urlencode("$img1");
$pdf=urlencode("$pdf");

$arrContextOptions=array(
    "ssl"=>array(
        "verify_peer"=>false,
        "verify_peer_name"=>false,
    ),
);

$URL="https://wap1.xhost.co.in/api/send-message?api-key=$apikey&number=91$mobile&messageBody=$msg&images=$img1&video=$video&pdf=$pdf";
$response = file_get_contents($wap_url, false, stream_context_create($arrContextOptions));


Comments (0)
Leave a Reply

Your email address and mobile will not be published.

Trending Blog
Related Blog

17/October/2024 16:16 Comments (0)
How to replace Fast2SMS?
17/October/2024 17:07 Comments (1)
How to secure your account of DV Group?

Subscribe our Newsletter