
Fluxpoint API
Todo
const axios = require('axios').default;
var options = {
headers: {
'Authorization': 'TOKEN'
}
}
axios.get('https://api.fluxpoint.dev', options)
.then(function (response) {
console.log('Success');
})
.catch(function (error) {
console.log(error);
});
To get json data try use
.then(function (response) {
var data = JSON.parse(response);
console.log(data.message);
})