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
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
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
...@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
=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
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
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
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
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
: 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
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
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
12 matches
Mail list logo