API - QRCode
Atualizar Ticket
1 min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/tickets/updateapi', 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 =>'{ "ticketid" "1067", // informe o id do ticket "status" "pending", // informe o status open, closed, pending "userid" "13", // id do usuário null ou número "queueid" "34", // id da fila null ou número "typebot sessionid" "campo livre letras e números", "customa" "campo livre letras e números", "customb" "campo livre letras e números" }', curlopt httpheader => array( 'content type application/json', 'authorization bearer tokenmeu' ), )); $response = curl exec($curl); curl close($curl); echo $response;