getEA1
curl --request POST \
--url https://{baseUrl}/ipbox/api/getEA1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data agente=agente \
--data fila=filaimport requests
url = "https://{baseUrl}/ipbox/api/getEA1"
payload = {
"de": "de",
"ate": "ate",
"agente": "agente",
"fila": "fila"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({de: 'de', ate: 'ate', agente: 'agente', fila: 'fila'})
};
fetch('https://{baseUrl}/ipbox/api/getEA1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{baseUrl}/ipbox/api/getEA1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "de=de&ate=ate&agente=agente&fila=fila",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/ipbox/api/getEA1"
payload := strings.NewReader("de=de&ate=ate&agente=agente&fila=fila")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{baseUrl}/ipbox/api/getEA1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&agente=agente&fila=fila")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getEA1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&agente=agente&fila=fila"
response = http.request(request)
puts response.read_bodyRelatórios
getEA1
Retorna o relatório de Estatísticas de Agentes (EA1).
Response:
agente | Login do agente. | ||||||||||||||||
fila | Descrição da fila | ||||||||||||||||
de | Início do período | ||||||||||||||||
ate | Fim do período | ||||||||||||||||
tempo_logado | Tempo que o agente ficou logado. | ||||||||||||||||
tempo_atendimento | Tempo que o agente ficou em atendimento. | ||||||||||||||||
tempo_disponivel | Tempo que o agente ficou disponível. | ||||||||||||||||
tempo_pausado | Tempo que o agente ficou em pausa. | ||||||||||||||||
tempo_improd | Tempo que o agente ficou improdutivo. | ||||||||||||||||
chamadas_atendidas |
| ||||||||||||||||
chamadas_abandonadas_ramal |
| ||||||||||||||||
toque_sem_atendimento |
| ||||||||||||||||
ligacoes_realizadas |
| ||||||||||||||||
pausas_usuario |
| ||||||||||||||||
pausas_sistema |
| ||||||||||||||||
tempo_improdutivo |
| ||||||||||||||||
alarmes_pausa |
| ||||||||||||||||
alarmes_duracao_atendimento |
| ||||||||||||||||
alarmes_dnd |
|
POST
/
ipbox
/
api
/
getEA1
getEA1
curl --request POST \
--url https://{baseUrl}/ipbox/api/getEA1 \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data agente=agente \
--data fila=filaimport requests
url = "https://{baseUrl}/ipbox/api/getEA1"
payload = {
"de": "de",
"ate": "ate",
"agente": "agente",
"fila": "fila"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({de: 'de', ate: 'ate', agente: 'agente', fila: 'fila'})
};
fetch('https://{baseUrl}/ipbox/api/getEA1', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{baseUrl}/ipbox/api/getEA1",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "de=de&ate=ate&agente=agente&fila=fila",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/x-www-form-urlencoded"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://{baseUrl}/ipbox/api/getEA1"
payload := strings.NewReader("de=de&ate=ate&agente=agente&fila=fila")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/x-www-form-urlencoded")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://{baseUrl}/ipbox/api/getEA1")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&agente=agente&fila=fila")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getEA1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&agente=agente&fila=fila"
response = http.request(request)
puts response.read_bodyAuthorizations
Token gerado em IPBoX > API > Token. Aceita o token puro, ou com prefixo Bearer / Basic.
Body
application/x-www-form-urlencoded
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
Example:
"de"
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
Example:
"ate"
Id ou login do agente
Example:
"agente"
[Opcional] Id ou descrição da fila (se não for informado retorna os dados de todas as filas)
Example:
"fila"
Response
200 - application/json
Successful response