Estou tentando utilizar o QPX Express API para buscar lista de vôos, na documentação tem como passar os argumentos, mas não sei como usar, por exemplo:
Documentação:
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"
}
]
}
}
A documentação diz isso:
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
Onde executar este código?