PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Dmitry Mamontov   PHP AmoCRM API Client   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP AmoCRM API Client
Manage accounts of AmoCRM using its REST API
Author: By
Last change: Update of example.php
Date: 11 months ago
Size: 416 bytes
 

Contents

Class file image Download
<?
require 'AmoRestApi.php';

//Getting information about the leads
$leadsId = 2556;
$amo = new AmoRestApi($subDomain, $login, $key);
$order = $amo->getLeadsList(1, 0, $leadsId);

//Creating a contacts
$amo = new AmoRestApi($subDomain, $login, $key);
$contacts['add'] = array(
   
'name' => 'Test',
   
'request_id' => '2555',
   
'date_create' => time()
);
$result = $amo->setContacts($contacts);
?>