1
0
mirror of synced 2025-01-19 17:31:46 +03:00
2013-10-08 15:19:50 +08:00
2013-08-27 18:07:57 +04:00
2013-07-05 14:18:52 +04:00
2013-10-08 15:19:50 +08:00

IntaroCRM REST API client

PHP Client for IntaroCRM REST API.

Requirements

  • PHP version 5.3 and above
  • PHP-extension CURL

Installation

Add IntaroCRM REST API client in your composer.json:

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

Usage

Create API clent class


$crmApiClient = new \IntaroCrm\RestApi(
    'https://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();
Description
PHP client for RetailCRM API
Readme MIT 9 MiB
Languages
PHP 100%