Skip to content

Instantly share code, notes, and snippets.

@karimmorta
Created January 27, 2020 19:24
Show Gist options
  • Save karimmorta/8a1e4cc92e5160a076d8f8ba62921dc3 to your computer and use it in GitHub Desktop.
Save karimmorta/8a1e4cc92e5160a076d8f8ba62921dc3 to your computer and use it in GitHub Desktop.
axios({
"method": "POST",
"url": "https://skyscanner-skyscanner-flight-search-v1.p.rapidapi.com/apiservices/pricing/v1.0",
"headers": {
"content-type": "application/x-www-form-urlencoded",
"x-rapidapi-host": "skyscanner-skyscanner-flight-search-v1.p.rapidapi.com",
"x-rapidapi-key": "21bf4db0efmsh13832ff18554d96p141b46jsndbeff7a3cdca"
},
"data": "inboundDate=2020-03-02&cabinClass=business&children=0&infants=0&country=US&currency=USD&locale=en-US&originPlace=SFO-sky&destinationPlace=LHR-sky&outboundDate=2020-02-02&adults=1"
}).then((response) => {
console.log(response)
}).catch((error) => {
console.log(error)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment