PHP code example of volodymyr68 / keycrm_php_sdk

1. Go to this page and download the library: Download volodymyr68/keycrm_php_sdk 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/ */

    

volodymyr68 / keycrm_php_sdk example snippets




use KeycrmSdk\Keycrm;

$apiKey = 'your-api-key-here';
$keycrm = new Keycrm($apiKey);

$records = $keycrm->getRecords();
print_r($records);

$newRecord = $keycrm->createRecord([
    'name' => 'John Doe',
    'email' => '[email protected]'
]);
print_r($newRecord);

$recordId = '123456';
$updatedRecord = $keycrm->updateRecord($recordId, [
    'email' => '[email protected]'
]);
print_r($updatedRecord);

$recordId = '123456';
$response = $keycrm->deleteRecord($recordId);
print_r($response);
sh
composer