我想从谷歌QPX快递API消耗数据,我想建立一个非常基本的要求。 在demopage [1]我复制所生成的JSON,其看起来如下:
{
"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
}
}
根据使用手册[2]基本请求具有以下结构:
https://www.googleapis.com/qpxExpress/v1/trips/search?key=your_API_key_here
所以,我用我的谷歌开发者控制台生成我的API密钥,但重新插入该代码
{
"error": {
"errors": [
{
"domain": "global",
"reason": "parseError",
"message": "Parse Error"
}
],
"code": 400,
"message": "Parse Error"
}
}
这有什么错我的要求?
[1] https://qpx-express-demo.itasoftware.com/ [2] https://developers.google.com/qpx-express/v1/requests