I'm not using my key here... I just not posting my key to a public forum that's indexed in Google.
And I've treid get also... I've tried every variation I can think of. I got a 200 response from GET but no data. Otherwise I get 401. Robert Harrison Full Stack Developer AIMG [email protected] Main Office: 704-321-1234 ext.121 Direct Line: 516-302-4345 www.aimg.com -----Original Message----- From: Dean Lawrence [mailto:[email protected]] Sent: Monday, January 19, 2015 11:31 AM To: cf-talk Subject: Re: Call Rail API / CF You are more on track with the second one than the first. I have two comments. First, you are using a POST method and the documentation for the companies method states that it should be a GET method. Second, you are replacing MYKEYHERE with your assigned assigned API key, correct? On Mon, Jan 19, 2015 at 11:25 AM, Robert Harrison <[email protected]> wrote: > > The two most promising have been: > > <cfset tmp = {} /> > <cfset tmp['Authorization'] = "Token token='MYKEYHERE'" /> > > <cfhttp url="https://api.callrail.com/v1/companies.json" result="r" > method="post" > > <cfhttpparam type="header" name="content-type" > value="application/json" /> <!---<cfhttpparam type="body" > value="#origTemp#" />---> <cfhttpparam type="body" > value="#serializeJson(tmp)#" /> </cfhttp> > > <cfdump var="#r#" /> > > AND > > <cfhttp url="https://api.callrail.com/v1/companies.json" result="r" > method="post" > > <cfhttpparam type="header" name="Authorization" value="Token token=' > MYKEYHERE''" /> > </cfhttp> > <cfdump var="#r#" /> > > > Robert Harrison > Full Stack Developer > AIMG > [email protected] > Main Office: 704-321-1234 ext.121 > Direct Line: 516-302-4345 > www.aimg.com > > > -- [image: profile picture] *Dean Lawrence* *President* Internet Data Technology *Phone:* 888-438-4381 x701 *Web:* www.idatatech.com *Email:* [email protected] Programming | Database | Consulting | Training ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359997 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

