Entendendo a base de permissões
Funcionamento
Qualquer requisição da API é dependente do token de integração vindo do Vlow, com ele será possível utilizar todos os recursos aqui oferecidos.
Utilização
Para melhor integrar seu token sempre utilize-o como um header chamado "Authorization".
Exemplo:
var axios = require("axios").default;
var options = {
method: 'GET',
url: 'http://client-api.vlow.com.br/v1/occupational-scheduling',
headers: {
'Authorization': 'SEU-TOKEN'
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});
import requests
url = "http://client-api.vlow.com.br/v1/occupational-scheduling"
payload = ""
headers = {"Authorization": "SEU-TOKEN"}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
<?php
$client = new http\Client;
$request = new http\Client\Request;
$request->setRequestUrl('http://client-api.vlow.com.br/v1/occupational-scheduling');
$request->setRequestMethod('GET');
$request->setHeaders([
'Authorization' => 'SEU-TOKEN'
]);
$client->enqueue($request)->send();
$response = $client->getResponse();
echo $response->getBody();
