php - QPX Express query error -
my request being processed correctly, tried custom result like:
https://www.googleapis.com/qpxexpress/v1/trips/search ?key=my_api_key&fields=trips(tripoption(saletotal,slice(segment(leg(arrivaltime,departuretime,origin,destination,originterminal,duration,operatingdisclosure)))))
but it's producing following error:
{ "error": { "errors": [ { "domain": "global", "reason": "invalidparameter", "message": "invalid field selection trips(tripoption(saletotal,slice(segment(leg(arrivaltime,departuretime,origin,destination,originterminal,duration,operatingdisclosure)))))", "locationtype": "parameter", "location": "fields" } ], "code": 400, "message": "invalid field selection trips(tripoption(saletotal,slice(segment(leg(arrivaltime,departuretime,origin,destination,originterminal,duration,operatingdisclosure)))))" } } array(1) { [0]=> string(1) "1" }
the value of fields
parameter contains weird characters, namely \u200c
, the unicode zero width non-joiner.
you can see in message
field of response. remove characters. it's possible they're not visible in editor, maybe try rewrite while string manually.
Comments
Post a Comment