We realize that many small business owners already have high quality order systems in place and only need a licensing solution. PHPAudit fills this need perfectly with our XML remote API. Using the remote API you can quickly and easily create users, orders, licenses and a host of other things. You can even extend the API to fit your exacting needs by writing your own API calls. Consider the diagram below as it illustrates how the API works.




Quick summary of the process:

- Your application sends a request to the PHPAudit API

- The PHPAudit API verifies the API Fingerprint

- If verification fails, the request fails

- If verified, PHPAudit API processes the transaction

- PHPAudit returns the results to your API handler in XML

- This entire process happens in the background during runtime



Example usage of the XML API to change a clients password:


<?PHP
require_once dirname__FILE__ ) . '/XMLRPC.class.php';

$api = new IXR_Client'http://example.com/rpc.php' );

$data               = array();
$data['api_key']    = 'YOUR_API_KEY';
$data['email']      = 'eric@solidphp.com';
$data['password']   = 'password';

$api->query'client.change_password'$data );

echo 
'<pre>';
print_r$api->getResponse() );
echo 
'</pre>';
?> 


The XML API Currently Supports the Following Operations:

- Client, create order

- Client, remove client

- Client, get client information

- Client, get information for all clients

- Client, create a new client

- Client, change a clients password

- Client / License, get license information

- License, get license status only

- License, change license status

- License, get local key