getAgendamentos
curl --request POST \
--url https://{baseUrl}/ipbox/api/getAgendamentos \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data usuario=usuario \
--data tipo=tipo \
--data de=de \
--data ate=ate \
--data nome=nomeimport requests
url = "https://{baseUrl}/ipbox/api/getAgendamentos"
payload = {
"usuario": "usuario",
"tipo": "tipo",
"de": "de",
"ate": "ate",
"nome": "nome"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({usuario: 'usuario', tipo: 'tipo', de: 'de', ate: 'ate', nome: 'nome'})
};
fetch('https://{baseUrl}/ipbox/api/getAgendamentos', 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/getAgendamentos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/getAgendamentos"
payload := strings.NewReader("usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/getAgendamentos")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getAgendamentos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"agendamentos": [
{
"id": 123,
"data": "2024-01-20 15:00",
"nome": "<string>",
"lote": "<string>",
"tipo": "E",
"fila": "<string>",
"usuario": "<string>",
"observacao": [
"<string>"
]
}
]
}
}Agendamentos
getAgendamentos
Obtém os agendamentos do usuário especificado.
POST
/
ipbox
/
api
/
getAgendamentos
getAgendamentos
curl --request POST \
--url https://{baseUrl}/ipbox/api/getAgendamentos \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data usuario=usuario \
--data tipo=tipo \
--data de=de \
--data ate=ate \
--data nome=nomeimport requests
url = "https://{baseUrl}/ipbox/api/getAgendamentos"
payload = {
"usuario": "usuario",
"tipo": "tipo",
"de": "de",
"ate": "ate",
"nome": "nome"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/x-www-form-urlencoded"
}
response = requests.post(url, data=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: '<api-key>',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: new URLSearchParams({usuario: 'usuario', tipo: 'tipo', de: 'de', ate: 'ate', nome: 'nome'})
};
fetch('https://{baseUrl}/ipbox/api/getAgendamentos', 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/getAgendamentos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"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/getAgendamentos"
payload := strings.NewReader("usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
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/getAgendamentos")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/x-www-form-urlencoded")
.body("usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome")
.asString();require 'uri'
require 'net/http'
url = URI("https://{baseUrl}/ipbox/api/getAgendamentos")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/x-www-form-urlencoded'
request.body = "usuario=usuario&tipo=tipo&de=de&ate=ate&nome=nome"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"agendamentos": [
{
"id": 123,
"data": "2024-01-20 15:00",
"nome": "<string>",
"lote": "<string>",
"tipo": "E",
"fila": "<string>",
"usuario": "<string>",
"observacao": [
"<string>"
]
}
]
}
}Authorizations
Token gerado em IPBoX > API > Token. Aceita o token puro, ou com prefixo Bearer / Basic.
Body
application/x-www-form-urlencoded
Login do usuario. Ex.: samara.
Example:
"usuario"
[Opcional] (E = Específico, G = Genérico). Se nao informado, retorna todos os tipos.
Example:
"tipo"
[Opcional porém obrigatório se {{ate}} for informado]. Data inicial do periodo no formato AAAA-MM-DD HH:MM:SS.
Example:
"de"
[Opcional porém obrigatório se {{de}} for informado]. Data final do periodo no formato AAAA-MM-DD HH:MM:SS.
Example:
"ate"
[Opcional] Filtrar agendamentos pelo nome do prospect
Example:
"nome"
