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=tri‌​ps(tripoption(saletotal,slice(segment(leg(arrivaltime,departuretime,origin,destin‌​ation,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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -