API - SISTEMA | BAILEYS | OFIC...
Fechar Tickets em Massa
1 min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/tickets/closestatus', 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 =>'{ "status" "open", // use open, pending ou both "all" true, // qualquer conexão se falso, obedece conexão do token "queueid" null // id da fila } curlopt httpheader => array( 'content type application/json', 'authorization bearer seutokenaqui' //token cadastrado na conexão ), )); $response = curl exec($curl); curl close($curl); echo $response; { "total" 6 }