PHP client for RetailCRM API
253b818cd1
orderStatusEdit added. |
||
---|---|---|
lib/IntaroCrm | ||
composer.json | ||
README.md |
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/rest-api-client": "dev-master"
}
}
Usage
Create API clent class
$crmApiClient = new \IntaroCrm\RestApi(
'http://demo.intarocrm.ru',
'T9DMPvuNt7FQJMszHUdG8Fkt6xHsqngH'
);
Constructor arguments are:
- Your IntaroCRM acount URL-address
- Your site API Token
Example: get order types list
$orderTypes = $crmApiClient->orderTypesList();
if (!is_null($crmApiClient->getLastError()))
return $crmApiClient->getLastError();