API - API DO ZAP (whatsmeow PR...
Enviar Lista
1 min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/whatsmeow/sendlistpro', 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 =>'{ "number" "5511989091838", "openticket" 1, "body" { "buttontext" "click here", "desc" "this is a list", "toptext" "this is a list", "list" \[ { "title" "menu button 1", "desc" "long description ", "rowid" "1" }, { "title" "menu button 2", "desc" "very good description ", "rowid" "2" } ] } }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seutokenaqui' //token cadastrado na conexão ), )); $response = curl exec($curl); curl close($curl); echo $response;