When I use this code, I get a result back. It is an unauthorized result
since I don't have an API key, but it is a GET request and does return a
JSON result.

<cfset api_url = "https://api.callrail.com/v1/companies.json"; />

<!---Replace with your API Key--->
<cfset api_key = "MYKEYHERE" />

<cfhttp method="get" url="#api_url#" result="json_data">
    <cfhttpparam type="header" name="Authorization" value="Token
token=#api_key#" >
</cfhttp>

<cfdump var="#json_data#">

On Mon, Jan 19, 2015 at 12:07 PM, Robert Harrison <[email protected]>
wrote:

>
> Yep tried double quotes too.
>
>
> 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:360004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to