Membuat wablast under windows
1. Silahkan download lewat url berikut
aldinokemal (Aldino Kemal) · GitHub
2. jalankan
c:\web\windows-amd64 -b=user:password -p=3001
-b untuk setting user dan password
-p untuk port
3. jalankan dari browser
http://localhost:3001
4. login, dan qrcode konek ke hp
5. jalan script lewat php
<?php
$post = [
'phone' => '628133.....',
'message' => 'iki uji coba dari windows',
];
$ch = curl_init('http://localhost:3001/send/message');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_USERPWD, 'user:password');
// execute!
$response = curl_exec($ch);
// close the connection, release resources used
curl_close($ch);
// do anything you want with your response
var_dump($response);
$array = json_decode($response, true);
echo "<br><br><h2>" . $array["code"] . "</h2>";
?>