getPausaAgente
curl --request POST \
--url https://{baseUrl}/ipbox/api/getPausaAgente \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data usuario=usuario \
--data fila=filaimport requests
url = "https://{baseUrl}/ipbox/api/getPausaAgente"
payload = {
"de": "de",
"ate": "ate",
"usuario": "usuario",
"fila": "fila"
}
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', usuario: 'usuario', fila: 'fila'})
};
fetch('https://{baseUrl}/ipbox/api/getPausaAgente', 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/getPausaAgente",
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&usuario=usuario&fila=fila",
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/getPausaAgente"
payload := strings.NewReader("de=de&ate=ate&usuario=usuario&fila=fila")
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/getPausaAgente")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&usuario=usuario&fila=fila")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getPausaAgente")
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&usuario=usuario&fila=fila"
response = http.request(request)
puts response.read_bodyAgente
getPausaAgente
Retorna as pausas dos agentes
O retorno é referente ao periodo especificado.
Desta forma, o inicio e o fim do período são obrigatórios.
O usuário e a fila são opcionais.
Response:
| cdate | Data e hora da Pausa, timestamp unix |
| data | Data e Hora da Pausa formato DD/MM/YYYY HH:MM:SS |
| motivo | Descrição do motivo |
| duracao | Duração em hora:minuto:segundo da pausa |
| agente | Login do agente |
POST
/
ipbox
/
api
/
getPausaAgente
getPausaAgente
curl --request POST \
--url https://{baseUrl}/ipbox/api/getPausaAgente \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data de=de \
--data ate=ate \
--data usuario=usuario \
--data fila=filaimport requests
url = "https://{baseUrl}/ipbox/api/getPausaAgente"
payload = {
"de": "de",
"ate": "ate",
"usuario": "usuario",
"fila": "fila"
}
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', usuario: 'usuario', fila: 'fila'})
};
fetch('https://{baseUrl}/ipbox/api/getPausaAgente', 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/getPausaAgente",
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&usuario=usuario&fila=fila",
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/getPausaAgente"
payload := strings.NewReader("de=de&ate=ate&usuario=usuario&fila=fila")
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/getPausaAgente")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("de=de&ate=ate&usuario=usuario&fila=fila")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getPausaAgente")
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&usuario=usuario&fila=fila"
response = http.request(request)
puts response.read_bodyBody
application/x-www-form-urlencoded
Data inicial do periodo no formato AAAA-MM-DD HH:MM:SS.
Example:
"de"
Data final do periodo no formato AAAA-MM-DD HH:MM:SS.
Example:
"ate"
[Opcional] Login do usuario. Ex: samara.
Example:
"usuario"
[Opcional] Nome da fila.
Example:
"fila"
Response
200 - application/json
Successful response