curl --request POST \
--url https://{baseUrl}/ipbox/api/criarFilaReceptiva \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data descricao=descricao \
--data operacao=operacao \
--data freq_posicao_fila=freq_posicao_fila \
--data incluir_estimativa_tempo=incluir_estimativa_tempo \
--data freq_msg_periodica=freq_msg_periodica \
--data script=script \
--data tempo_max_atendimento=tempo_max_atendimento \
--data tamanho_fila=tamanho_fila \
--data tempo_max_tocando_agente=tempo_max_tocando_agente \
--data tempo_max_fila_espera=tempo_max_fila_espera \
--data integracao_id=integracao_idimport requests
url = "https://{baseUrl}/ipbox/api/criarFilaReceptiva"
payload = {
"descricao": "descricao",
"operacao": "operacao",
"freq_posicao_fila": "freq_posicao_fila",
"incluir_estimativa_tempo": "incluir_estimativa_tempo",
"freq_msg_periodica": "freq_msg_periodica",
"script": "script",
"tempo_max_atendimento": "tempo_max_atendimento",
"tamanho_fila": "tamanho_fila",
"tempo_max_tocando_agente": "tempo_max_tocando_agente",
"tempo_max_fila_espera": "tempo_max_fila_espera",
"integracao_id": "integracao_id"
}
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',
operacao: 'operacao',
freq_posicao_fila: 'freq_posicao_fila',
incluir_estimativa_tempo: 'incluir_estimativa_tempo',
freq_msg_periodica: 'freq_msg_periodica',
script: 'script',
tempo_max_atendimento: 'tempo_max_atendimento',
tamanho_fila: 'tamanho_fila',
tempo_max_tocando_agente: 'tempo_max_tocando_agente',
tempo_max_fila_espera: 'tempo_max_fila_espera',
integracao_id: 'integracao_id'
})
};
fetch('https://{baseUrl}/ipbox/api/criarFilaReceptiva', 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/criarFilaReceptiva",
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&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id",
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/criarFilaReceptiva"
payload := strings.NewReader("descricao=descricao&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id")
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/criarFilaReceptiva")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("descricao=descricao&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/criarFilaReceptiva")
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&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id"
response = http.request(request)
puts response.read_bodycriarFilaReceptiva
Cria uma fila receptiva.
Response:
{
"status": "success",
"data": {
"id": 21,
"descricao": "FILA REC API 5",
"operacao": "OPERACAO 01"
}
}
curl --request POST \
--url https://{baseUrl}/ipbox/api/criarFilaReceptiva \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data descricao=descricao \
--data operacao=operacao \
--data freq_posicao_fila=freq_posicao_fila \
--data incluir_estimativa_tempo=incluir_estimativa_tempo \
--data freq_msg_periodica=freq_msg_periodica \
--data script=script \
--data tempo_max_atendimento=tempo_max_atendimento \
--data tamanho_fila=tamanho_fila \
--data tempo_max_tocando_agente=tempo_max_tocando_agente \
--data tempo_max_fila_espera=tempo_max_fila_espera \
--data integracao_id=integracao_idimport requests
url = "https://{baseUrl}/ipbox/api/criarFilaReceptiva"
payload = {
"descricao": "descricao",
"operacao": "operacao",
"freq_posicao_fila": "freq_posicao_fila",
"incluir_estimativa_tempo": "incluir_estimativa_tempo",
"freq_msg_periodica": "freq_msg_periodica",
"script": "script",
"tempo_max_atendimento": "tempo_max_atendimento",
"tamanho_fila": "tamanho_fila",
"tempo_max_tocando_agente": "tempo_max_tocando_agente",
"tempo_max_fila_espera": "tempo_max_fila_espera",
"integracao_id": "integracao_id"
}
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',
operacao: 'operacao',
freq_posicao_fila: 'freq_posicao_fila',
incluir_estimativa_tempo: 'incluir_estimativa_tempo',
freq_msg_periodica: 'freq_msg_periodica',
script: 'script',
tempo_max_atendimento: 'tempo_max_atendimento',
tamanho_fila: 'tamanho_fila',
tempo_max_tocando_agente: 'tempo_max_tocando_agente',
tempo_max_fila_espera: 'tempo_max_fila_espera',
integracao_id: 'integracao_id'
})
};
fetch('https://{baseUrl}/ipbox/api/criarFilaReceptiva', 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/criarFilaReceptiva",
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&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id",
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/criarFilaReceptiva"
payload := strings.NewReader("descricao=descricao&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id")
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/criarFilaReceptiva")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("descricao=descricao&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/criarFilaReceptiva")
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&operacao=operacao&freq_posicao_fila=freq_posicao_fila&incluir_estimativa_tempo=incluir_estimativa_tempo&freq_msg_periodica=freq_msg_periodica&script=script&tempo_max_atendimento=tempo_max_atendimento&tamanho_fila=tamanho_fila&tempo_max_tocando_agente=tempo_max_tocando_agente&tempo_max_fila_espera=tempo_max_fila_espera&integracao_id=integracao_id"
response = http.request(request)
puts response.read_bodyBody
Descricao da fila
"descricao"
Id ou descricao da operacao
"operacao"
[Opcional] Frequencia de anuncio de posicao na fila em segundos - default=0
"freq_posicao_fila"
[Opcional] Incluir estimativa de tempo na posicao da fila: yes, no, once - default=yes
"incluir_estimativa_tempo"
[Opcional] Frequencia da mensagem periodica em segundos - default=0
"freq_msg_periodica"
[Opcional] Id ou descricao do script
"script"
[Opcional] Tempo Máximo de Atendimento em minutos - default=10
"tempo_max_atendimento"
[Opcional] Tamanho da fila - default=1
"tamanho_fila"
[Opcional] Tempo Máximo tocando para o agente em segundos - default=0
"tempo_max_tocando_agente"
[Opcional] Tempo Máximo na Fila de Espera em segundos - default=1
"tempo_max_fila_espera"
[Opcional] Id da integracao
"integracao_id"
Response
Successful response