1
0
mirror of synced 2024-11-21 21:06:07 +03:00
PHP client for RetailCRM API
Go to file
kruglov c14a661174 fix #15624
orderType methods added;
composer.json, README.md fixed
2013-07-04 15:21:32 +04:00
lib fix #15624 2013-07-04 15:21:32 +04:00
composer.json fix #15624 2013-07-04 15:14:27 +04:00
README.md fix #15624 2013-07-04 15:14:27 +04:00
RestApi.php fix #15624 2013-07-04 15:14:27 +04:00

IntaroCRM REST API client

PHP Client for IntaroCRM REST API.

Requirements

  • PHP version 5.2 and above
  • PHP-extension CURL

Installation

Add IntaroCRM REST API client in your composer.json:

{
    "require": {
        "intarocrm/crm-rest-api": "dev-master"
    }
}

Usage

Create API clent class


$crmApiClient = new \IntaroCrmRestApi('http://demo.intarocrm.ru',
    'T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH');

Constructor arguments are:

  1. Your IntaroCRM acount URL-address
  2. Your site API Token

Example: get order types list


$orderTypes = $crmApiClient->orderTypesList();
if (!is_null($crmApiClient->getLastError()))
    return $crmApiClient->getLastError();