API - API DO ZAP (whatsmeow PR...
Status de Texto
2 min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/whatsmeow/sendtextstatus', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'post', curlopt postfields =>'{ "body" "teste", "color" 4294967295, "backgroundcolor" 4285408638, "font" 10 }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seutokenaqui' //token cadastrado na conexão ), )); $response = curl exec($curl); curl close($curl); echo $response; fontes disponíveis 0 system 1 system text 2 fb script 6 system bold 7 morningbreeze regular 8 calistoga regular 9 exo2 extrabold 10 courierprime bold