Note: Please note that this is a beta version that is not intended for productive use, but only for preliminary testing. If you use this beta version, you have to expect that serious errors may occur or data may be irretrievably lost. The use of beta versions is therefore only at your own risk!
Installation via Composer
composer require hammermaps/tsic
PHP: Example - Retrieving data from an instance
//Include Client
include_once ("../TSI_Client.php");
/**
* ###################################################################################
* Overview of the methods available to an object
* ###################################################################################
*
* TSI_Client_Base Object (abstract) => file: TSI_Client_Base_Interface.php
* TSI_Client Object => file: TSI_Client_Interface.php
* TSI_VServer Object => file: TSI_VServer_Interface.php
* TSI_Instance Object => file: TSI_Instance_Interface.php
* TSI_Role Object => file: TSI_Role_Interface.php
* TSI_Properties Object => file: TSI_Properties_Interface.php
* TSI_User Object => file: TSI_User_Interface.php
* TSI_Resellers Object => file: TSI_Resellers_Interface.php
* TSI_MultiClient Object => file: TSI_MultiClient_Interface.php
*/
//Client erstellen
$client = new TSI_Client\TSI_Client(
'https://meine_domain.de', //The full URL for TSI installation with API extension
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX', //Your client key see "API access"
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' //Your secret key see "API access"
);
$instance = $client->getTSInstance(11); //ID der Instanz
echo '<pre>';
echo 'Server-IP: '.$instance->getIP();
echo '<br>';
echo 'QueryPort: '.$instance->getQueryPort();
echo '<br>';
print_r($instance);
echo '</pre>';
Display More
Further application examples can be found in the directory "examples/" of the zip archive.
-
Version 1.1.0
- 787.46 kB
- 9 Downloads
- Various bug fixes
- Support for TSI 1.2.0
- More examples