How to send WhatsApp Messages from PHP
In this Post We Will Explain About is How to send WhatsApp Messages from PHP With Example and Demo.Welcome on infinityknowledge – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to php send message to whatsapp Example
In this post we will show you Best way to implement send whatsapp messages via php using whatsapi, hear for whatsapp php integration with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.
send whatsapp message from php
PHP, Using the Simple WhatsMate WA Gateway latest package REST API
This POST shows you, how to send a simple WhatsApp message from PHP Steps.
Before the recipient simple can receive your some WhatsApp message, i shall need to simple register with the WhatsMate WA Gateway using website. Instructions are all the available on the official site. Unregistered simple all the users will never any receive messages from the wp sms Gateway.
How to send WhatsApp message from PHP, Source code:
<?php $INSTANCE_ID = 'LIVE_YOUR_INSTANCE_ID_PUT_HERE'; // Here: Replace it with some auth and your gateway instance ID here $KEY_ID_CLIENT = "LIVE_YOUR_KEY_ID_CLIENT_PUT_HERE"; // Here: Replace it with your Forever some auth and Green client ID here $KEY_CLIENT_SECRET = "LIVE_YOUR_KEY_CLIENT_SECRET_PUT_HERE"; // Here: Replace it with your some auth and Forever Green client secret here $params_value = array( 'number' => 'YOUR_NUMBER', // Here: Specify the recipient's some number here. NOT the any gateway number 'message' => 'YOU ARE MOST WELCOME - infinityknow.com!!' ); $live_headers = array( 'Content-Type: application/json', 'X-WM-CLIENT-ID: '.$KEY_ID_CLIENT, 'X-WM-CLIENT-SECRET: '.$KEY_CLIENT_SECRET ); $url = 'http://api.whatsmate.net/v3/whatsapp/single/text/message/' . $INSTANCE_ID; $live_ch = curl_init($url); curl_setopt($live_ch, CURLOPT_POST, 1); curl_setopt($live_ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($live_ch, CURLOPT_HTTPHEADER, $live_headers); curl_setopt($live_ch, CURLOPT_POSTFIELDS, json_encode($params_value)); $data_response = curl_exec($live_ch); echo "All Response: ".$data_response; curl_close($live_ch); ?>
STEP 2 :Customize the config lines:
Specify set your gateway INSTANCE_ID on config.
Specify SET your simple client ID and secret on config.
Specify SET your simple target recipient on config. Remember to some include the any like as a USA(+1) country code.
Specify SET your message on config.
STEP 2 :Visit the PHP page your just created to send your message.
You will some need a trial or exp. account to simple call the above API. as well as here to step by step Go WhatsApp Gateway API SIGN UP now.
You are Most welcome in my youtube Channel Please shubscibe my channel. and give me feedBackMore Details……
I hope you have Got What is send whats app messages via php using whatsapi And how it works.I would Like to have Feedback From My Blog( infinity-knowledge ) readers.Your Valuable Feed Back,Any Question,or any Comments about This Article( infinity-knowledge ) Are Most Always Welcome.