Last active
May 15, 2022 11:19
-
-
Save andresmafra/9ce470e26156d0d29262380e49feea5c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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