Call Rail API / CF

2015-01-19 Thread Robert Harrison
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 think of that looks correct, and have tried it using JSON, but I always get a 401 Unauthorized response. Anyone ever done the Call Rail A

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 eithe

ColdFusion Developer position available in Schaumburg, IL

2015-01-19 Thread Kevin Szatkowski
Hi ColdFusion community, I have a Software Developer(ColdFusion) position available in Schaumburg, IL. Our client is looking for someone with at least 1 year of professional experience developing with ColdFusion. Also, experience working in an Agile/Scrum Environment. Lastly, huge bonus if you

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 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 think of that looks

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
The two most promising have been: https://api.callrail.com/v1/companies.json"; result="r" method="post" > AND https://api.callrail.com/v1/companies.json"; result="r" method="post" > Robert Harrison Full Stack Developer AIMG rharri...@aimg.com Main Office: 704-321-1234 ext.121 Di

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 19,

RE: Call Rail API / CF

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

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 Robert Harrison
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: Monda

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 wrote: > > Yes. The PHP version does pull the data. The CF version comes up empty. > > > Rob

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 API

RE: Call Rail API / CF

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

RE: Call Rail API / CF

2015-01-19 Thread Robert Harrison
Yep tried double quotes too. 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: William Seiter [mailto:will...@seiter.com] Sent: Monday, January 19, 2015 12:06 PM To: cf-talk

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. https://api.callrail.com/v1/companies.json"; /> On Mon, Jan 19, 2015 at 12:07 PM, Robert Harrison wrote: > > Yep tried doub