getPA1
curl --request POST \
--url https://{baseUrl}/ipbox/api/getPA1 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data fila=fila \
--data time=time \
--data incluir_classificacao=incluir_classificacaoimport requests
url = "https://{baseUrl}/ipbox/api/getPA1"
payload = {
"de": "de",
"ate": "ate",
"fila": "fila",
"time": "time",
"incluir_classificacao": "incluir_classificacao"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
de: 'de',
ate: 'ate',
fila: 'fila',
time: 'time',
incluir_classificacao: 'incluir_classificacao'
})
};
fetch('https://{baseUrl}/ipbox/api/getPA1', 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/getPA1",
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&fila=fila&time=time&incluir_classificacao=incluir_classificacao",
CURLOPT_HTTPHEADER => [
"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/getPA1"
payload := strings.NewReader("de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao")
req, _ := http.NewRequest("POST", url, payload)
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/getPA1")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getPA1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao"
response = http.request(request)
puts response.read_bodyRelatórios
getPA1
Retorna o relatório de produtividade de agentes (PA1).
Response:
agente | Login do agente. | ||
times | Matriz com a descrição dos times em que o agente trabalhou. | ||
atendimentos | Quantidade de atendimentos. | ||
abandonadas_no_ramal | Quantidade de ligações abandonadas no ramal. | ||
toque_sem_atendimento | Quantidade de toques sem atendimento. | ||
tempo_logado | Tempo que o agente ficou logado. | ||
tempo_atendimento | Tempo que o agente ficou em atendimento. | ||
tma | Média de tempo em atendimento. | ||
tmd | Média de tempo disponível. | ||
tempo_pausa_total | Tempo total em pausa | ||
pausas |
| ||
tempo_nao_produtivo | Tempo que o agente não estava trabalhando | ||
tempo_disponivel | Tempo total disponível | ||
geradas | Ligações geradas | ||
geradas_atendidas | Ligações geradas que foram atendidas | ||
tempo_geradas | Tempo total das ligações geradas | ||
tempo_medio_atendidas_geradas | Tempo médio nas ligações geradas que foram atendidas. | ||
tempo_medio_disponivel_geradas | Tempo médio que ficou disponível para as ligações geradas. | ||
vendas | Quantidade de vendas realizadas pelo agente | ||
percentual_vendas_atendidas | Percentual de ligações atendidas convertidas em vendas |
Também retornará a estrutura que segue para o result do agente e o result total.
qtd_total | Quantidade total de ligações |
tempo_total | tempo total em ligação |
Se incluir_classificacao = ‘Y’, retorna também a totalização das classificações feitas pelos agentes:
classificacoes |
|
POST
/
ipbox
/
api
/
getPA1
getPA1
curl --request POST \
--url https://{baseUrl}/ipbox/api/getPA1 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data fila=fila \
--data time=time \
--data incluir_classificacao=incluir_classificacaoimport requests
url = "https://{baseUrl}/ipbox/api/getPA1"
payload = {
"de": "de",
"ate": "ate",
"fila": "fila",
"time": "time",
"incluir_classificacao": "incluir_classificacao"
}
headers = {"Content-Type": "application/x-www-form-urlencoded"}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/x-www-form-urlencoded'},
body: new URLSearchParams({
de: 'de',
ate: 'ate',
fila: 'fila',
time: 'time',
incluir_classificacao: 'incluir_classificacao'
})
};
fetch('https://{baseUrl}/ipbox/api/getPA1', 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/getPA1",
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&fila=fila&time=time&incluir_classificacao=incluir_classificacao",
CURLOPT_HTTPHEADER => [
"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/getPA1"
payload := strings.NewReader("de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao")
req, _ := http.NewRequest("POST", url, payload)
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/getPA1")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getPA1")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "de=de&ate=ate&fila=fila&time=time&incluir_classificacao=incluir_classificacao"
response = http.request(request)
puts response.read_bodyBody
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"
[Opcional] Nome da fila. Se não for informado retorna os dados de todas as filas.
Example:
"fila"
[Opcional] Nome do time. Se não for informado retorna os dados de todos os times.
Example:
"time"
[Opcional] Inclui a totalização de classificações feitas pelo agente (Y ou N) - padrão N
Example:
"incluir_classificacao"
Response
200 - application/json
Successful response