API - SISTEMA | BAILEYS | OFIC...
Enviar Documento por URL
1min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/sendurldocument', 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", "body" "https //whaticket saas com/whaticket pdf", "filename" "teste de nome", "mimetype" "application/pdf", "caption" "caption" }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seu token aqui' ), )); $response = curl exec($curl); curl close($curl); echo $response;