API - SISTEMA | BAILEYS | OFIC...
Status das Conexões
1min
\<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //{backend url}/api/whatsapp status/', 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 httpheader => array( 'content type application/json', 'authorization bearer tokenmeu' ), )); $response = curl exec($curl); curl close($curl); echo $response; { "whatsapps" \[ { "id" 111, "name" "whaticket saas whitelabel", "qrcode" "", "status" "connected", "channel" "whatsapp", "battery" null, "plugged" null, "retries" 0, "greetingmessage" "", "farewellmessage" "", "complationmessage" "", "outofhoursmessage" "", "ratingmessage" "", "closemessage" "encerrar por inatividade", "provider" "stable", "isdefault" false, "companyid" 1, "token" null, "hubtoken" "x", "webhook" null, "ignorenumbers" null, "number" "", "selectedinterval" 0, "selectedmovequeueid" null, "excluded" null, "excludedwpw" null, "ixcrandom" null, "markasread" null, "importmessages" null, "coverimage" null, "inatividade" 0, "removido" false, "createdat" "2023 12 27t19 08 29 267z", "updatedat" "2024 02 12t16 28 48 935z", "queues" \[ { "id" 50, "name" "typebot", "color" "#73d8ff", "greetingmessage" " teste olá! obrigado por entrar em contato \n\naguarde um instante enquanto localizo as opções para você!\n\n", "whatsappqueue" { "whatsappid" 111, "queueid" 50, "createdat" "2024 02 11t21 41 37 576z", "updatedat" "2024 02 11t21 41 37 576z" } } ] } ] }