const axios = require(“axios”);
const options = {
method: ‘GET’,
url: ‘https://shipment-tracking.p-eu.rapidapi.com/lh/handling/shipment’,
params: {aWBNumber: ‘
headers: {
apikey: ‘undefined’,
‘X-RapidAPI-Key’: ‘NOT-AUTHORIZED’,
‘X-RapidAPI-Host’: ‘shipment-tracking.iata.rapidapi.com’
}
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});