curl --request POST \
--url https://{baseUrl}/ipbox/api/addResultadoLigacao \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data descricao=descricao \
--data fila=fila \
--data acao=acao \
--data tempoAgendamento=tempoAgendamento \
--data fichaPreenchida=fichaPreenchida \
--data smsTexto=smsTexto \
--data lote=lote \
--data postUrl=postUrl \
--data postUrlEncode=postUrlEncode \
--data atualizarResultadoExistente=atualizarResultadoExistenteimport requests
url = "https://{baseUrl}/ipbox/api/addResultadoLigacao"
payload = {
"descricao": "descricao",
"fila": "fila",
"acao": "acao",
"tempoAgendamento": "tempoAgendamento",
"fichaPreenchida": "fichaPreenchida",
"smsTexto": "smsTexto",
"lote": "lote",
"postUrl": "postUrl",
"postUrlEncode": "postUrlEncode",
"atualizarResultadoExistente": "atualizarResultadoExistente"
}
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({
descricao: 'descricao',
fila: 'fila',
acao: 'acao',
tempoAgendamento: 'tempoAgendamento',
fichaPreenchida: 'fichaPreenchida',
smsTexto: 'smsTexto',
lote: 'lote',
postUrl: 'postUrl',
postUrlEncode: 'postUrlEncode',
atualizarResultadoExistente: 'atualizarResultadoExistente'
})
};
fetch('https://{baseUrl}/ipbox/api/addResultadoLigacao', 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/addResultadoLigacao",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente",
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/addResultadoLigacao"
payload := strings.NewReader("descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente")
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/addResultadoLigacao")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/addResultadoLigacao")
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 = "descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente"
response = http.request(request)
puts response.read_bodyaddResultadoLigacao
Cadastra um novo resultado de ligação.
Parâmetros (form-data ou x-www-form-urlencoded):
| Parâmetro | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| descricao | string | Sim | Descrição/nome do resultado de ligação |
| fila | string | Sim | ID ou descrição da fila |
| acao | string | Condicional | Código ou descrição da ação. Obrigatório para filas do tipo Ativa (A). Se não informado em fila Receptiva, assume “Nenhuma”. |
| tempoAgendamento | int | Não | Tempo de agendamento em segundos (padrão: 0) |
| fichaPreenchida | string | Não | Checar ficha preenchida. Y ou N (padrão: N) |
| smsTexto | string | Não | ID ou descrição do texto SMS a enviar. |
| lote | string | Condicional | ID ou descrição do lote. Obrigatório quando a ação é MOVE_LOTE. |
| postUrl | string | Não | URL para envio. |
| postUrlEncode | string | Não | Codificar URL. Y ou N (padrão: Y) |
| atualizarResultadoExistente | string | Não | Se Y, atualiza o resultado existente com mesma descrição+fila ao invés de inserir um novo. Se N ou não informado, sempre insere. (padrão: N) |
Códigos de ação válidos por tipo de fila:
Fila Ativa (A):
| Código | Descrição |
|---|---|
| NONE | Nenhuma |
| AG_ESP | Agendamento Especifico |
| AG_GEN | Agendamento Generico |
| LIGAR_AGORA | Liga imediatamente p/ o prospect |
| EX_FONE | Exclui o Fone |
| EX_PROSPECT | Exclui o Prospect |
| CLIENTE | Prospect tornou-se cliente |
| VOLTAR_FILA | Prospect volta para fila |
| BLACKLIST | Adiciona prospect na blacklist |
| MOVE_LOTE | Move prospect para o lote |
Fila Receptiva (R):
| Código | Descrição |
|---|---|
| NONE | Nenhuma |
| AD_LOTE | Adiciona no lote e agenda retorno |
| CLIENTE_REC | Marca prospect como Cliente e nao volta a ligar |
| EX_PROSPECT_REC | Exclui o prospect e nao volta a ligar |
| BLACKLIST_REC | Adiciona ao blacklist |
Nota: O campo acao aceita tanto o código (ex: AG_ESP) quanto a descrição (ex: Agendamento Especifico). A busca por descrição é case-insensitive.
curl --request POST \
--url https://{baseUrl}/ipbox/api/addResultadoLigacao \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data descricao=descricao \
--data fila=fila \
--data acao=acao \
--data tempoAgendamento=tempoAgendamento \
--data fichaPreenchida=fichaPreenchida \
--data smsTexto=smsTexto \
--data lote=lote \
--data postUrl=postUrl \
--data postUrlEncode=postUrlEncode \
--data atualizarResultadoExistente=atualizarResultadoExistenteimport requests
url = "https://{baseUrl}/ipbox/api/addResultadoLigacao"
payload = {
"descricao": "descricao",
"fila": "fila",
"acao": "acao",
"tempoAgendamento": "tempoAgendamento",
"fichaPreenchida": "fichaPreenchida",
"smsTexto": "smsTexto",
"lote": "lote",
"postUrl": "postUrl",
"postUrlEncode": "postUrlEncode",
"atualizarResultadoExistente": "atualizarResultadoExistente"
}
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({
descricao: 'descricao',
fila: 'fila',
acao: 'acao',
tempoAgendamento: 'tempoAgendamento',
fichaPreenchida: 'fichaPreenchida',
smsTexto: 'smsTexto',
lote: 'lote',
postUrl: 'postUrl',
postUrlEncode: 'postUrlEncode',
atualizarResultadoExistente: 'atualizarResultadoExistente'
})
};
fetch('https://{baseUrl}/ipbox/api/addResultadoLigacao', 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/addResultadoLigacao",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente",
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/addResultadoLigacao"
payload := strings.NewReader("descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente")
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/addResultadoLigacao")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/addResultadoLigacao")
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 = "descricao=descricao&fila=fila&acao=acao&tempoAgendamento=tempoAgendamento&fichaPreenchida=fichaPreenchida&smsTexto=smsTexto&lote=lote&postUrl=postUrl&postUrlEncode=postUrlEncode&atualizarResultadoExistente=atualizarResultadoExistente"
response = http.request(request)
puts response.read_bodyBody
[Obrigatório] Descrição/nome do resultado de ligação
"descricao"
[Obrigatório] ID ou descrição da fila
"fila"
[Condicional] Código ou descrição da ação. Obrigatório para filas do tipo Ativa (A). Se não informado em fila Receptiva, assume "Nenhuma".
"acao"
[Opcional] Tempo de agendamento em segundos (padrão: 0)
"tempoAgendamento"
[Opcional] Checar ficha preenchida. Y ou N (padrão: N)
"fichaPreenchida"
[Opcional] ID ou descrição do texto SMS a enviar.
"smsTexto"
[Condicional] ID ou descrição do lote. Obrigatório quando a ação é MOVE_LOTE.
"lote"
[Opcional] URL para envio.
"postUrl"
[Opcional] Codificar URL. Y ou N (padrão: Y)
"postUrlEncode"
[Opcional] Se Y, atualiza o resultado existente com mesma descrição+fila ao invés de inserir um novo. Se N ou não informado, sempre insere. (padrão: N)
"atualizarResultadoExistente"
Response
Successful response