Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

making google qpx api calls with CF

22 views
Skip to first unread message

chris hendrix

unread,
Sep 1, 2014, 4:45:21 PM9/1/14
to
can anyone help me figure out how to cfhttp with this api?

https://developers.google.com/qpx-express/
Message has been deleted

ed...@wearerndtbl.com

unread,
Feb 6, 2015, 4:27:05 PM2/6/15
to
On Monday, September 1, 2014 at 4:45:21 PM UTC-4, chris hendrix wrote:
> can anyone help me figure out how to cfhttp with this api?
>
> https://developers.google.com/qpx-express/

<cfset qpxFields = '{
"request": {
"slice": [
{
"origin": "MCO",
"destination": "JFK",
"date": "2015-02-13"
}
],
"passengers": {
"adultCount": 1,
"infantInLapCount": 0,
"infantInSeatCount": 0,
"childCount": 0,
"seniorCount": 0
},
"solutions": 20,
"refundable": false
}
}'>

<cfhttp url="https://www.googleapis.com/qpxExpress/v1/trips/search?key=KEYHERE" method="post" result="httpResp" timeout="60">
<cfhttpparam type="header" name="Content-Type" value="application/json" />
<cfhttpparam type="body" value="#serializeJSON(qpxFields)#">
</cfhttp>

<cfoutput>
#qpxFields#
</cfoutput>
0 new messages