classificarLigacao
curl --request POST \
--url https://{baseUrl}/ipbox/api/classificarLigacao \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data user=usuario \
--data resultadoLigacaoId=resultadoLigacaoId \
--data resultadoLigacao=resultadoLigacao \
--data tipoRetorno=tipoRetorno \
--data dataRetorno=dataRetorno \
--data historico=historicoimport requests
url = "https://{baseUrl}/ipbox/api/classificarLigacao"
payload = {
"user": "usuario",
"resultadoLigacaoId": "resultadoLigacaoId",
"resultadoLigacao": "resultadoLigacao",
"tipoRetorno": "tipoRetorno",
"dataRetorno": "dataRetorno",
"historico": "historico"
}
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({
user: 'usuario',
resultadoLigacaoId: 'resultadoLigacaoId',
resultadoLigacao: 'resultadoLigacao',
tipoRetorno: 'tipoRetorno',
dataRetorno: 'dataRetorno',
historico: 'historico'
})
};
fetch('https://{baseUrl}/ipbox/api/classificarLigacao', 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/classificarLigacao",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico",
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/classificarLigacao"
payload := strings.NewReader("user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico")
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/classificarLigacao")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/classificarLigacao")
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 = "user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico"
response = http.request(request)
puts response.read_bodyLigações
classificarLigacao
Classifica a última ligação atendida pelo agente.
Informar resultadoLigacaoId ou resultadoLigacao.
Se ambos forem informados, será usado o resultadoLigacaoId.
POST
/
ipbox
/
api
/
classificarLigacao
classificarLigacao
curl --request POST \
--url https://{baseUrl}/ipbox/api/classificarLigacao \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data user=usuario \
--data resultadoLigacaoId=resultadoLigacaoId \
--data resultadoLigacao=resultadoLigacao \
--data tipoRetorno=tipoRetorno \
--data dataRetorno=dataRetorno \
--data historico=historicoimport requests
url = "https://{baseUrl}/ipbox/api/classificarLigacao"
payload = {
"user": "usuario",
"resultadoLigacaoId": "resultadoLigacaoId",
"resultadoLigacao": "resultadoLigacao",
"tipoRetorno": "tipoRetorno",
"dataRetorno": "dataRetorno",
"historico": "historico"
}
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({
user: 'usuario',
resultadoLigacaoId: 'resultadoLigacaoId',
resultadoLigacao: 'resultadoLigacao',
tipoRetorno: 'tipoRetorno',
dataRetorno: 'dataRetorno',
historico: 'historico'
})
};
fetch('https://{baseUrl}/ipbox/api/classificarLigacao', 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/classificarLigacao",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico",
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/classificarLigacao"
payload := strings.NewReader("user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico")
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/classificarLigacao")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/classificarLigacao")
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 = "user=usuario&resultadoLigacaoId=resultadoLigacaoId&resultadoLigacao=resultadoLigacao&tipoRetorno=tipoRetorno&dataRetorno=dataRetorno&historico=historico"
response = http.request(request)
puts response.read_bodyBody
application/x-www-form-urlencoded
Login/username do agente.
Example:
"usuario"
Id do resultado de ligação - obter os resultados de ligação da fila usando o método getResultadoLigacao descrito acima.
Example:
"resultadoLigacaoId"
Descrição do resultado de ligação
Example:
"resultadoLigacao"
[obrigatório no caso de agendamento] - Tipo do agendamento (G = genérico ou E = específico).
Example:
"tipoRetorno"
[obrigatório no caso de agendamento] - Data e hora do agendamento no formato 'YYYY-MM-DD HH:MM'.
Example:
"dataRetorno"
[Opcional] observação em forma de texto
Example:
"historico"
Response
200 - application/json
Successful response