Hello,
How do I access the returned variables when making an API call. I have tried many different ways to no avail. I am editting the supportticketslist.tpl. Here is what I have so far with all the fields changed for my site. The call is supposed to return the users data which I am trying to retrieve. For example, the clients email, companyname. Any help would be great.
$url = "http://www.mydomainlocation.com/whmcs/includes/api.php";
$username = "Adminuser"; # Admin username goes here
$password = "password"; # Admin password goes here
$postfields["username"] = $username;
$postfields["password"] = md5($password);
$postfields["action"] = "getclientsdata";
$postfields["email"] = "demo@whmcs.com";