JSON call - PHP to CFML translation
Hi all,
I am working on communicating to an api of a domain register, now i found the following code that is voor php:
$domain = "test.nl";
$params = array();
$request_url = "https://httpapi.yoursrs.com/v1/domains/" . urlencode($domain) . "/check";
$response = sendRequest($request_url, $params, "tester", "pass1234");
print_r($response);
Now i need to change this to cfml code and i tried:
<cfset jsondata = {
login_handle = "username",
login_pass = "password"
} />
<cfhttp
url="https://httpapi.yoursrs.com/v1/domains/test.nl/check"
method="post"
result="result">
#SerializeJSON(jsondata)#
</cfhttp>
Still i have no luck, does anyone can translate that php to cfml?
