PHP code example of dmamontov / amo-restapi
1. Go to this page and download the library: Download dmamontov/amo-restapi 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/ */
dmamontov / amo-restapi example snippets
php
$amo = new AmoRestApi($subDomain, $login, $key);
$order = $amo->getLeadsList(1, 0, 2556);
php
$amo = new AmoRestApi($subDomain, $login, $key);
$contacts['add'] = array(
'name' => 'Test',
'request_id' => '2555',
'date_create' => time()
);
$result = $amo->setContacts($contacts);