API Docs

Examples

We're getting you started off with a very simple example of utilizing our API. This allows resellers to easily interface with our systems directly from their internal systems.


Include the following PHP wrapper:



<?php

require_once('libs/api.ubiquityv2.php');

$api = new ubiquityV2(000, 'ubic-000', 'xxxxxxxxxx');

$params = array();

try {
	print_r($api->call('client.get', $params));
}
catch (Exception $e) {
	echo "ERROR CALLED: \n";
	echo $e->getCode() . ': ' . $e->getMessage();
}

?>