I have tried working on this and so far: The returntype has to be a struct. Or I get errors. In BK's example, the return from the cfhttp is contained in apiResult so based on verify-mail's web site directions : Example: The code bellow already contains your API Token so you can use it as it is (I have removed) https://app.verify-email.org/api/v1/KEY/verify/support@verify-email.org cURL (example) curl -X GET "https://app.verify-email.org/api/v1/KEY/verify/support@verify-email.org" JSON encoded response { "email": "support@verify-email.org", "status": 1, "status_description": "OK email", "smtp_code": 250, "smtp_log": "250 2.1.5 OK u8-v6si8965853qvh.5 - gsmtp\r\n" } I expected to be able to read the status as apiResult.status but when I dumped that I got a no such value. so at this stage I am lost. What am I missing? I get 30 credits with a new account as so far, even though I have "issued" a dozen polls, I still have 30 credits left. So it's not a credit unavailable error. I originally used this to test for an emails syntax validity. Maybe I can use a simpler approach and simply test the email for valid characters? This seems more thorough? Never researched that. So my code right now is: <cffunction name="email_verify" access="remote" returntype="struct"> <cfargument name="email" type="string" required="true"> <cfset var urlString='https://app.verify-email.org/api/v1/mykey/verify/#arguments.email#'> <cfhttp method="get" url="#urlString#" result="apiResult"> <cfhttpparam type="header" name="Content-Type" value="application/json "> <cfhttpparam type="Header" name="Accept" value="application/json "> </cfhttp> <cfquery datasource="#application.dsn#"> dumps the value into a table used for said purpose insert into ajaxnotes (note) values('email:#apiResult.email#') </cfquery> <cfreturn apiResult> </cffunction>
... View more