|  Download     
 AmoCRM API ClientThis class can Manage accounts of AmoCRM using its REST API. It can obtain an authorization token for a given account, so it can send HTTP requests to the AmoCRM Rest API in order to perform several types of operations. Currently it can the current accounts, set and get contacts, contact links, leads, companies, tasks, notes and fields. RequirementsAvailable methods
`getAccounts`
`setContacts`, `getContactsList`, `getContactsLinks`
`setLeads`, `getLeadsList`
`setCompany`, `getCompanyList`
`setTasks`, `getTasksList`
`setNotes`, `getNotesList`
`setFields`
 Installation1) Install composer 2) Follow in the project folder: composer require dmamontov/amo-restapi ~1.0.3
 In config composer.jsonyour project will be added to the librarydmamontov/amo-restapi, who settled in the foldervendor/. In the absence of a config file or folder with vendors they will be created. If before your project is not used composer, connect the startup file vendors. To do this, enter the code in the project: require 'path/to/vendor/autoload.php';
 Examples of useGetting information about the leads$amo = new AmoRestApi($subDomain, $login, $key);
$order = $amo->getLeadsList(1, 0, 2556);
 Creating a contacts$amo = new AmoRestApi($subDomain, $login, $key);
$contacts['add'] = array(
    'name' => 'Test',
    'request_id' => '2555',
    'date_create' => time()
);
$result = $amo->setContacts($contacts);
 |