This line in the PHP seems to indicate that they are using double quotes around the key.
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Authorization: Token token=\"{$api_key}\"")); Have you tried using double quotes around the key? <cfhttpparam type="header" name="Authorization" value='Token token="MYKEYHERE"' /> ---------------------------------- William Seiter -----Original Message----- From: Robert Harrison [mailto:rharri...@aimg.com] Sent: Monday, January 19, 2015 8:48 AM To: cf-talk Subject: RE: Call Rail API / CF Yes. The PHP version does pull the data. The CF version comes up empty. Robert Harrison Full Stack Developer AIMG rharri...@aimg.com Main Office: 704-321-1234 ext.121 Direct Line: 516-302-4345 www.aimg.com -----Original Message----- From: Dean Lawrence [mailto:dean...@gmail.com] Sent: Monday, January 19, 2015 11:46 AM To: cf-talk Subject: Re: Call Rail API / CF Ok, good, I just wanted to make sure. So, when you use a GET, it sounds like you are authenticating correctly, no? This my sound stupid, but do you have any companies added to the system for the API to return? Also, have you tried removing the single quotes from your API key in the header? In the API documentation, it does not have quotes around it, "Authorization: Token token=abc1234". On Mon, Jan 19, 2015 at 11:37 AM, Robert Harrison <rharri...@aimg.com> wrote: > > 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 > rharri...@aimg.com > 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:* d...@idatatech.com 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:360002 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm