Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 1.36 KB

File metadata and controls

38 lines (25 loc) · 1.36 KB

LogicBoxes API

LogicBoxes is a domain registrar/hosting platform. This API is a wrapper for the LogicBoxes web API, each command is mapped one-to-one with a Class and Method. For example, registering a domain requires the domains/register.json API command, which is executed via LogicboxesDomains::register().

The LogicBoxes platform is used by many different resellers, all of which are fully compatible with this integration. These include, but are not limited to:

Requirements

  • PHP 5.1.3 or greater

Using the API

<?php
require_once "logicboxes_api.php";

$user = "YOUR_USER_ID";
$key = "YOUR_API_KEY";
$sandbox = true; // true for testing, false for live

$api = new LogicboxesApi($user, $key, $sandbox);

// Create a new instance of the command class we want to use
$api->loadCommand("logicboxes_domains");
$domains = new LogicboxesDomains($api);

$vars = array('domain-name' => array("mydomain"), 'tlds' => array("com"));

print_r($domains->available($vars)->response());
?>