Skip to content

Instantly share code, notes, and snippets.

@andresmafra
Last active May 15, 2022 11:19
Show Gist options
  • Save andresmafra/9ce470e26156d0d29262380e49feea5c to your computer and use it in GitHub Desktop.
Save andresmafra/9ce470e26156d0d29262380e49feea5c to your computer and use it in GitHub Desktop.
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.vistoriei.com.br/v1/contract/{ID_DA_VISTORIA}',
headers: {
'Authorization': 'Bearer {SEU_TOKEN}'
}
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment