So I did this with Axios
and it returns the result I’m after. How would I do this with Airtable.js
?
module.exports = async function () {
return axios.get(
"https://api.airtable.com/v0/" + baseKey + "/Hours?view=Grid%20view",
{
headers: { Authorization: "Bearer " + apiKey }
}
).then( function ( response ) {
return response.data.records;
} ).catch( function ( error ) {
console.log( error );
} );
};