PHP code example of orglinker / external-integration

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

    

orglinker / external-integration example snippets


use \Orglinker\Orglinker;


$config = [
    'email' => '[email protected]',
    'password' => 'adminpassword',
    'domain_name' => 'your.domain.orglinker.com'
];
$orglinker = new Orglinker($config);

$data = [
    'table' => 'contact', //  'per-page' => '25', //optional field
    'conditions' => '[{"comparator":"=","field":"id","value":"3"}]', //optional field
];
echo $orglinker->getItems($data);

$data = [
    'table' => 'contact', //contact1","en":" contact1"}], "short_name":" contact1"},{"name_loc":[{"ru":" contact2","en":" contact2"}],"short_name":"contact2"}]', //

$data = [
    'table' => 'contact', //contact1","en":" contact1"}], "short_name":" contact1", "id":"12"},{"name_loc":[{"ru":" contact2","en":" contact2"}],"short_name":"contact2", "id":"13"}]', //

$data = [
    'table' => 'contact', //];
echo $orglinker->deleteItems($data);

$data = [
    'table' => 'contract', //:"25"},{"parent_id":"1","id":"24"}]', //