I'm trying to use the QPX Express API to fetch list of flights, in the documentation I have how to pass the arguments, but I do not know how to use, for example:
Documentation:
The simplest way to try out this API is to send it to POST request with curl. For example, create a file named request.json with the following content (replace each> instance of YYYY-MM-DD with a date, which can be up to a year in the future.):
JSON:
{
"request": {
"passengers": {
"adultCount": 1
},
"slice": [
{
"origin": "BOS",
"destination": "LAX",
"date": "YYYY-MM-DD"
},
{
"origin": "LAX",
"destination": "BOS",
"date": "YYYY-MM-DD"
}
]
}
}
The documentation says this:
Then execute the following command from within the same directory as the above> request.json file. (As explained in Prerequisites, you must first obtain an API key.)
curl -d @ request.json --header "Content-Type: application / json" link
Where to run this code?