open-wa/wa-automate-docker
![](https://avatars.githubusercontent.com/u/5903821?v=4)
![](https://avatars.githubusercontent.com/u/51224114?v=4)
The issue has been closed
Need PHP Example on /sendText #17
honggianto posted onGitHub
Hi all,
I tried to /sendText using PHP script below :
<?php
$curl = curl_init();
$data = [
'to' => '000000000000@c.us',
'content' => 'Hello World!',
];
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_URL, "http://localhost:8002/sendText");
$result = curl_exec($curl);
curl_close($curl);
print_r($result);
?>
and the result always :
{"success":true,"response":"Message missing"}
What am i missed here ? Help me please... Thanks before.