2017-06-22 00:55:08 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP version 5.4
|
|
|
|
*
|
2017-06-22 16:42:42 +03:00
|
|
|
* API client v3
|
2017-06-22 00:55:08 +03:00
|
|
|
*
|
|
|
|
* @category RetailCrm
|
|
|
|
* @package RetailCrm
|
|
|
|
* @author RetailCrm <integration@retailcrm.ru>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
2019-08-30 14:10:52 +03:00
|
|
|
* @link https://help.retailcrm.ru/Developers/ApiVersion5
|
2017-06-22 00:55:08 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
namespace RetailCrm\Client;
|
|
|
|
|
|
|
|
use RetailCrm\Methods\V3;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* PHP version 5.4
|
|
|
|
*
|
2017-06-22 16:42:42 +03:00
|
|
|
* API client v3 class
|
2017-06-22 00:55:08 +03:00
|
|
|
*
|
|
|
|
* @category RetailCrm
|
|
|
|
* @package RetailCrm
|
|
|
|
* @author RetailCrm <integration@retailcrm.ru>
|
|
|
|
* @license https://opensource.org/licenses/MIT MIT License
|
2019-08-30 14:10:52 +03:00
|
|
|
* @link https://help.retailcrm.ru/Developers/ApiVersion5
|
2017-06-22 00:55:08 +03:00
|
|
|
*/
|
|
|
|
class ApiVersion3 extends AbstractLoader
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Init version based client
|
|
|
|
*
|
|
|
|
* @param string $url api url
|
|
|
|
* @param string $apiKey api key
|
|
|
|
* @param string $version api version
|
|
|
|
* @param string $site site code
|
2019-08-30 14:10:52 +03:00
|
|
|
* @param bool $debug debug mode
|
2017-06-22 00:55:08 +03:00
|
|
|
*/
|
2019-08-30 14:10:52 +03:00
|
|
|
public function __construct($url, $apiKey, $version, $site, $debug = false)
|
2017-06-22 00:55:08 +03:00
|
|
|
{
|
2019-08-30 14:10:52 +03:00
|
|
|
parent::__construct($url, $apiKey, $version, $site, $debug);
|
2017-06-22 00:55:08 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
use V3\Customers;
|
|
|
|
use V3\Orders;
|
|
|
|
use V3\Packs;
|
|
|
|
use V3\References;
|
|
|
|
use V3\Statistic;
|
|
|
|
use V3\Stores;
|
|
|
|
use V3\Telephony;
|
|
|
|
}
|