API - SISTEMA | BAILEYS | OFIC...
Obter Empresa
1min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/companies', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt postfields =>'{ "id" "69" }', curlopt httpheader => array( 'content type application/json', 'authorization bearer tokenmeu' ), )); $response = curl exec($curl); curl close($curl); echo $response; { "id" 69, "name" "empresa de teste api22", "phone" "5511989091838", "namecomplete" "nome da empresa22", "pais" "br", "indicator" "indicador da empresa", "email" "email22\@email com", "status" true, "importar" false, "document" "", "duedate" "2024/12/21", "recurrence" "mensal", "messagecount" "0", "schedules" \[], "planid" "1", "createdat" "2023 12 10t16 23 03 151z", "updatedat" "2023 12 10t17 02 25 911z" }