PHP Classes
elePHPant
Icontem

PHP AmoCRM API Client: Manage accounts of AmoCRM using its REST API

Recommend this page to a friend!
  Info   View files Example   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-12-20 (3 years ago) RSS 2.0 feedNot enough user ratingsTotal: 154 All time: 8,698 This week: 337Up
Version License PHP version Categories
amocrm-rest-api 1.0.5BSD License5.0PHP 5, Web services
Description Author

This 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.

  Performance   Level  
Name: Dmitry Mamontov <contact>
Classes: 15 packages by
Country: Russian Federation Russian Federation
Age: 29
All time rank: 91533 in Russian Federation Russian Federation
Week rank: 79 Up8 in Russian Federation Russian Federation Up
Innovation award
Innovation award
Nominee: 6x

 

Details

Latest Stable Version License Total Downloads

AmoCRM API Client

This 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.

Requirements

  • PHP version >5.0
  • curl

Available methods

  • getAccounts
  • setContacts, getContactsList, getContactsLinks
  • setLeads, getLeadsList
  • setCompany, getCompanyList
  • setTasks, getTasksList
  • setNotes, getNotesList
  • setFields

Installation

1) Install composer

2) Follow in the project folder:

composer require dmamontov/amo-restapi ~1.0.3

In config composer.json your project will be added to the library dmamontov/amo-restapi, who settled in the folder vendor/. 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 use

Getting 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);
  Files folder image Files  
File Role Description
Plain text file AmoRestApi.php Class Class source
Accessible without login Plain text file composer.json Output Sample output
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
 100%
Total:154
This week:0
All time:8,698
This week:337Up