Veículos
Consultar Posicoes de Veiculos
POST
/
api
/
v1
/
veiculos
/
posicoes
Consultar Posicoes de Veiculos
curl --request POST \
--url https://api.dnsx.com.br/api/v1/veiculos/posicoes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chassis": [
"VIN00000000000001",
"VIN00000000000002"
]
}
'import requests
url = "https://api.dnsx.com.br/api/v1/veiculos/posicoes"
payload = { "chassis": ["VIN00000000000001", "VIN00000000000002"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chassis: ['VIN00000000000001', 'VIN00000000000002']})
};
fetch('https://api.dnsx.com.br/api/v1/veiculos/posicoes', 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://api.dnsx.com.br/api/v1/veiculos/posicoes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'chassis' => [
'VIN00000000000001',
'VIN00000000000002'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const url = 'https://api.dnsx.com.br/api/v1/veiculos/posicoes';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chassis: ['VIN00000000000001', 'VIN00000000000002']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));⌘I
Consultar Posicoes de Veiculos
curl --request POST \
--url https://api.dnsx.com.br/api/v1/veiculos/posicoes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"chassis": [
"VIN00000000000001",
"VIN00000000000002"
]
}
'import requests
url = "https://api.dnsx.com.br/api/v1/veiculos/posicoes"
payload = { "chassis": ["VIN00000000000001", "VIN00000000000002"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chassis: ['VIN00000000000001', 'VIN00000000000002']})
};
fetch('https://api.dnsx.com.br/api/v1/veiculos/posicoes', 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://api.dnsx.com.br/api/v1/veiculos/posicoes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'chassis' => [
'VIN00000000000001',
'VIN00000000000002'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}const url = 'https://api.dnsx.com.br/api/v1/veiculos/posicoes';
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({chassis: ['VIN00000000000001', 'VIN00000000000002']})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));.png?fit=max&auto=format&n=8bFqpa3rKHrcFcON&q=85&s=9f0a4aafb3619ea09fee2c1fda7deb65)