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 (1)     Share:        Bookmark

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

$apikey="Enter your API key here";
$mobile="Enter 10 digit mobile number here";
$msg=urlencode("Enter your message here");
$image=urlencode("Enter full Image URL here with https:// or leave blank");
$pdf=urlencode("Enter full PDF URL here with https:// or leave blank");

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

$wap_url="https://wap.xhost.co.in/wapp/api/send?apikey=$apikey&mobile=$mobile&msg=$msg&img1=$image&pdf=$pdf";
$response = file_get_contents($wap_url, false, stream_context_create($arrContextOptions));



Comments (1)
  • zjun6

    07/July/2025 12:00

    buy amoxil - https://combamoxi.com/ order amoxil online

Leave a Reply

Your email address and mobile will not be published.

Trending Blog
Related Blog

16/October/2024 17:20 Comments (3)
How to create a ticket?
17/October/2024 18:22 Comments (16)
How to renew any service?

Subscribe our Newsletter