Google Flight RPC

Does anyone know how to use Google Flight RPC (www.google.com/flights/rpc) or how to post a json array to it? The only documentation I’ve found for it is www.nohup.in/blog/using-json-google-flights. It shows the responses and part of the requests. I’m not sure how to build and post a json array using the following example from part 1 of the linked documentation.

[,[[,"fs","[,[,[\"SJC\"]\n,\"2012-04-05\",[\"EWR\",\"JFK\",\"LGA\"]\n,\"2012-04-12\"]\n]\n"] ] ,[,[[,"b_ca","54"] ,[,"f_ut","search;f=SJC;t=EWR,JFK,LGA;d=2012-04-05;r=2012-04-12"] ,[,"b_lr","11:36"] ,[,"b_lr","1:1528"] ,[,"b_lr","2:1827"] ,[,"b_qu","3"] ,[,"b_qc","1"] ] ] ]

Also, how do I set up the necessary headers using cURL?

Here’s Some Sample Code…

Hopefully, that will point you in the right direction.

Sponsor our Newsletter | Privacy Policy | Terms of Service