10 Replies Latest reply on Jul 28, 2010 11:00 AM by MarcovandenOever

    JSON call - PHP to CFML translation

    MarcovandenOever Level 1

      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");


      Now i need to change this to cfml code and i tried:


      <cfset jsondata = {
      login_handle = "username",
      login_pass = "password"
      } />








      Still i have no luck, does anyone can translate that php to cfml?