I would like to use data from the Google QPX Express API, and I'm trying to configure a very simple query. On demopage [1], I copied the generated JSON, which looks like this:
{ "request": { "slice": [ { "origin": "ZRH", "destination": "DUS", "date": "2014-12-02" } ], "passengers": { "adultCount": 1, "infantInLapCount": 0, "infantInSeatCount": 0, "childCount": 0, "seniorCount": 0 }, "solutions": 20, "refundable": false } }
According to the online manual [2], the main request has the following structure:
https:
So, I pasted this code using my API key, which I created in the Google Developer Console, but re
{ "error": { "errors": [ { "domain": "global", "reason": "parseError", "message": "Parse Error" } ], "code": 400, "message": "Parse Error" } }
What happened to my request?
[1] https://qpx-express-demo.itasoftware.com/ [2] https://developers.google.com/qpx-express/v1/requests
Ronin Nov 27 '14 at 22:03 2014-11-27 22:03
source share