PHP code example of infernusophiuchus / cbapiclerk

1. Go to this page and download the library: Download infernusophiuchus/cbapiclerk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

infernusophiuchus / cbapiclerk example snippets



use Infernusophiuchus\CBAPIClerk\Handle as CBAPIClerk;
use Infernusophiuchus\CBAPIClerk\Exceptions\HandleException;

try {

	$cbapiclerk = new CBAPIClerk(
		'https://your-site.ru/', // адрес вашей «Клиентской базы»
		'login', // логин пользователя с включенным доступом по API
		'apikey' // ключ, сгенерированный системой
	);

} catch (HandleException $e) {}