Re: Call Rail API / CF

2015-01-19 Thread LRS Scout
If I were you I wouldn't get caught up in the example. There's a ruby one on their site that might make more sense to you, but to be honest a quick look at the APIs docs make it seem like it should be easy to do. http://apidocs.callrail.com/ curl is a command line tool correct? So you're

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
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:22 AM To: cf-talk Subject: Re: Call Rail API / CF Robert, can you share the code

Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence
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

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
...@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:31 AM To: cf-talk Subject: Re: Call Rail API / CF You are more on track with the second one than the first. I

RE: Call Rail API / CF

2015-01-19 Thread William Seiter
=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

Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence
So when you dump the results of the cfhttp call, is it empty? If not, is there anything that is listed in the Filecontent key within the dump structure? On Mon, Jan 19, 2015 at 11:47 AM, Robert Harrison rharri...@aimg.com wrote: Yes. The PHP version does pull the data. The CF version comes up

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
Nada! 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 12:01 PM To: cf-talk Subject: Re: Call Rail

Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence
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

Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence
Robert, can you share the code that you have tried? On Mon, Jan 19, 2015 at 9:31 AM, Robert Harrison rharri...@aimg.com wrote: Below is a call rail API request in PHP. This works in PHP, but I need to run this in ColdFusion. I've tried every combination of cfhttp and cfhttpparam I can

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
: 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

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
Subject: RE: Call Rail API / CF 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

Re: Call Rail API / CF

2015-01-19 Thread Dean Lawrence
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