Doc API Woowa V2.0


Queue Mode



Sample PHP Script

$data["domain"] ="woowa.xxx";   
$data["license"] ="5c286f1ed7xxx";	//only domain name without http:// or https:// or www.
$data["wa_number"] ="628975835xxx";     //use format 628xxx (country code first)
$data["file"]="https://my.woo-wa.com/abc/def/image.jpg";    //path of file must be https protocol
$data["caption"] = "this is caption";    //optional 
$data["text"] ="bismillah woo-wa.com";    //body message same as whatsapp massage, you can use markdown whatsapp 
$data["scheduled"] ="2019-07-19 19:19:00"; //if empty send immediately

$url="http://api.woo-wa.com/v2.0/send-message"; 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);
$err = curl_error($ch);
curl_close ($ch);
if ($err) {
    echo "cURL Error #:" . $err;
} else {
    echo $result;
}

Realtime Mode

Request Parameter

Response





Sample PHP Script


$data = array(
	"phone_no" => '628975835xxx',
	"key" => '13922647945306acd1b1116ca9b29292f382cdf9ffda3xxx',
	"message" => 'Bismillah woo-wa.com'
);

$data_string = json_encode($data);
$url='https://173.212.234.34/api/send_message';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string)) 
); 

echo $response = curl_exec($ch);
echo "\n";
$err = curl_error($ch);
curl_close($ch);

Response

Send success


Send failed




Sample PHP Script


$data = array(
	"phone_no" => '628975835xxx',
	"key" => '13922647945306acd1b1116ca9b29292f382cdf9ffda3xxx',
	"url" => 'https://my.woo-wa.com/abc/def/image.png'
);

$data_string = json_encode($data);
$url='https://173.212.234.34/api/send_image_url';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string)) 
); 

echo $response = curl_exec($ch);
echo "\n";
$err = curl_error($ch);
curl_close($ch);

Response





Sample PHP Script


$data = array(
	"phone_no" => '628975835xxx',
	"key" => '13922647945306acd1b1116ca9b29292f382cdf9ffda3xxx',
	"url" => 'https://my.woo-wa.com/abc/def/doc.pdf'
);

$data_string = json_encode($data);
$url='https://173.212.234.34/api/send_file_url';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); 
curl_setopt($ch, CURLOPT_POSTFIELDS, $data_string);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 0);
curl_setopt($ch, CURLOPT_TIMEOUT, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
'Content-Length: ' . strlen($data_string)) 
); 

echo $response = curl_exec($ch);
echo "\n";
$err = curl_error($ch);
curl_close($ch);