Created
January 27, 2020 19:24
-
-
Save karimmorta/8a1e4cc92e5160a076d8f8ba62921dc3 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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¤cy=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