0
I’m trying to use the QPX Express API to search for flight lists, the documentation has 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 a 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 so:
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" https://www.googleapis.com/qpxExpress/v1/trips/search?key=your_API_key_here
Where to run this code?
but how can I get this data in json
– Furlan
have how I do using PHP?
– Furlan