‘553588754197’, ‘message’ => ‘Interação rd station para o cliente: ‘ . $whatsapp);
// use key ‘http’ even if you send the request to https://…
$options4 = array(
‘http’ => array(
‘header’ => “Content-type: application/x-www-form-urlencoded\r\n”,
‘method’ => ‘POST’,
‘content’ => http_build_query($data4)
)
);
$context4 = stream_context_create($options4);
$result4 = file_get_contents($url, false, $context4);
if ($result4 === FALSE) { /* Handle error */ }
//dispara a mensagem da API
$data = array(‘number’ => $whatsapp, ‘message’ => $apimsg);
// use key ‘http’ even if you send the request to https://…
$options = array(
‘http’ => array(
‘header’ => “Content-type: application/x-www-form-urlencoded\r\n”,
‘method’ => ‘POST’,
‘content’ => http_build_query($data)
)
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) { /* Handle error */ }
echo ‘Mensagem enviada :)’;
//var_dump($result);
?>
// ESTRATÉGIA ZAP DAS GALÁXIAS
// ZDG © 2020
// www.zapdasgalaxias.com.br