Skip to content

Instantly share code, notes, and snippets.

@luceos
Last active December 20, 2015 03:19
Show Gist options
  • Save luceos/6062455 to your computer and use it in GitHub Desktop.
Save luceos/6062455 to your computer and use it in GitHub Desktop.
HostingXS api example
<?PHP
require_once "<path>/<to>/hxsclient.php";
if( array_key_exists( "domaincheck" , $_POST )) {
$api = new hxsclient( <username> , "<password>" , "<sandbox=true/false>" );
$domainavailable = $api -> checkDomain( $_POST["domaincheck"] );
}
// enter the form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment