API - API DO ZAP (whatsmeow PR...
Arquivo por URL
1 min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/whatsmeow/sendurlfileswhatsmeowpro', 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", "type" "image", //audio, video, document "caption" "", "filename" "algumacoisa jpeg", "body" "https //img s msn com akamaized net/tenant/amp/entityid/aa1crtmb img?w=612\&h=304\&q=90\&m=6\&f=webp\&u=t" }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seutokenaqui' //token cadastrado na conexão ), )); $response = curl exec($curl); curl close($curl); echo $response;