Открытые члены | |
__construct ($write_log, $timeout=self::DEFAULT_TIMEOUT) | |
setTimeout ($timeout) | |
getTimeout () | |
setWriteLog ($write_log) | |
getWriteLog () | |
getPvzList () | |
createNewOrder ($xml) | |
createAddDelivery () | |
updateOrder ($xml) | |
deleteOrder ($xml) | |
getOrdersPrintDocument ($xml) | |
createOrderCallCourier ($xml) | |
createOrdersPackagesPrint ($xml) | |
getOrderStatusReport ($xml) | |
getOrderInfoRequest ($xml) | |
getLocationRegions ($params, $method= 'GET', $decode=true) | |
getLocationsCities ($params, $method= 'GET', $decode=true) | |
Открытые статические члены | |
static | getInstance () |
Поля данных | |
const | API_URL = "https://integration.cdek.ru/" |
const | API_URL_CALCULATE = "http://api.cdek.ru/calculator/calculate_price_by_json.php" |
const | API_CALCULATE_VERSION = "1.0" |
const | DEVELOPER_KEY = 'r5$E7UPuZG:%X$r0j8N-5bUR~go$mKFr' |
const | DEFAULT_TIMEOUT = 20 |
Защищенные члены | |
apiRequest ($script, $params=[], $method="POST", $use_cache=true) | |
getApiHost () | |
Защищенные данные | |
$config | |
$write_log | |
$timeout | |
Статические защищенные данные | |
static | $inst = null |
__construct | ( | $write_log, | |
$timeout = self::DEFAULT_TIMEOUT |
|||
) |
|
protected |
Запрос к серверу рассчета стоимости доставки. Ответ сервера кешируется
string | $script | - скрипт |
array | $params | - массив параметров |
string | $method | - POST или GET |
bool | $use_cache | - кэшировать запрос |
createAddDelivery | ( | ) |
createNewOrder | ( | $xml | ) |
createOrderCallCourier | ( | $xml | ) |
createOrdersPackagesPrint | ( | $xml | ) |
deleteOrder | ( | $xml | ) |
|
protected |
Получает хост для api
|
static |
getLocationRegions | ( | $params, | |
$method = 'GET' , |
|||
$decode = true |
|||
) |
getLocationsCities | ( | $params, | |
$method = 'GET' , |
|||
$decode = true |
|||
) |
getOrderInfoRequest | ( | $xml | ) |
getOrdersPrintDocument | ( | $xml | ) |
getOrderStatusReport | ( | $xml | ) |
getPvzList | ( | ) |
getTimeout | ( | ) |
getWriteLog | ( | ) |
setTimeout | ( | $timeout | ) |
setWriteLog | ( | $write_log | ) |
updateOrder | ( | $xml | ) |
|
protected |
|
staticprotected |
|
protected |
|
protected |
const API_CALCULATE_VERSION = "1.0" |
const API_URL = "https://integration.cdek.ru/" |
const API_URL_CALCULATE = "http://api.cdek.ru/calculator/calculate_price_by_json.php" |
const DEFAULT_TIMEOUT = 20 |
const DEVELOPER_KEY = 'r5$E7UPuZG:%X$r0j8N-5bUR~go$mKFr' |