API - SISTEMA | BAILEYS | OFIC...

Enviar Áudio por URL

1min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/messages/sendurlaudio', 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 //s3 typebot io/public/workspaces/clozv34id002ljx0fpagmqor4/typebots/clozv9d7f0004l50go6cgxv4u/blocks/raycbyurlc6xybynm84b41mw?v=1701959327584", "mimetype" "audio/mpeg", "ptt" true }', curlopt httpheader => array( 'content type application/json', 'authorization bearer seu token aqui' ), )); $response = curl exec($curl); curl close($curl); echo $response;