curl --request POST \
--url https://{baseUrl}/ipbox/api/getRA4 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data operacao=operacao \
--data fila=fila \
--data lote=lote \
--data time=time \
--data user=usuarioimport requests
url = "https://{baseUrl}/ipbox/api/getRA4"
payload = {
"de": "de",
"ate": "ate",
"operacao": "operacao",
"fila": "fila",
"lote": "lote",
"time": "time",
"user": "usuario"
}
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',
operacao: 'operacao',
fila: 'fila',
lote: 'lote',
time: 'time',
user: 'usuario'
})
};
fetch('https://{baseUrl}/ipbox/api/getRA4', 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/getRA4",
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&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario",
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/getRA4"
payload := strings.NewReader("de=de&ate=ate&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario")
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/getRA4")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getRA4")
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&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario"
response = http.request(request)
puts response.read_bodygetRA4
Retorna o relatório de aproveitamento por agente (RA4).
Response:
Para cada status (ex.: Solicitou retorno, Caixa Postal, etc), será retornada a estrutura que segue:
| qtd | Quantidade |
| tempo | tempo em ligação |
| percentual | Percentual em relação ao total |
| tempo_medio | Média de tempo em todas as ligações deste status |
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 |
curl --request POST \
--url https://{baseUrl}/ipbox/api/getRA4 \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data operacao=operacao \
--data fila=fila \
--data lote=lote \
--data time=time \
--data user=usuarioimport requests
url = "https://{baseUrl}/ipbox/api/getRA4"
payload = {
"de": "de",
"ate": "ate",
"operacao": "operacao",
"fila": "fila",
"lote": "lote",
"time": "time",
"user": "usuario"
}
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',
operacao: 'operacao',
fila: 'fila',
lote: 'lote',
time: 'time',
user: 'usuario'
})
};
fetch('https://{baseUrl}/ipbox/api/getRA4', 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/getRA4",
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&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario",
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/getRA4"
payload := strings.NewReader("de=de&ate=ate&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario")
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/getRA4")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getRA4")
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&operacao=operacao&fila=fila&lote=lote&time=time&user=usuario"
response = http.request(request)
puts response.read_bodyBody
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
"de"
AAAAMMDDHHMMSS (onde AAAA = ano, MM = mês, DD = dia, HH = hora, MM = minuto, SS = segundo, exemplo: 2020513080000).
"ate"
Nome da operação.
"operacao"
[Opcional] Nome da fila. Se não for informado retorna os dados de todas as filas.
"fila"
[Opcional] Nome do lote. Se não for informado retorna os dados de todos os lotes.
"lote"
[Opcional] Nome do time. Se não for informado retorna os dados de todos os times.
"time"
[Opcional] Login/username do agente. Se não for informado retorna os dados de todos os agentes.
"usuario"
Response
Successful response