См. определение в файле restclient.php строка 19
◆ call()
call |
( |
| $methodName, |
|
|
| $additionalParams = null, |
|
|
| $licenseCheck = false, |
|
|
| $clearAccessSettings = false ) |
|
protected |
Performs call to the REST method and returns decoded results of the call. define SALE_SRVS_RESTCLIENT_DISABLE_SRV_ALIVE_CHECK to disable server alive checking.
- Аргументы
-
string | $methodName | Name of the REST method. |
array | $additionalParams | Parameters, that should be passed to the method. |
bool | $licenseCheck | Should client send license key as a parameter of the http request. |
bool | $clearAccessSettings | Should client clear authorization before performing http request. |
- Возвращает
- Result $result
См. определение в файле restclient.php строка 51
◆ clearAccessSettings()
Drops current stored access credentials.
- Возвращает
- void
См. определение в файле restclient.php строка 295
◆ getLastUnSuccessCallInfo()
static getLastUnSuccessCallInfo |
( |
| ) |
|
|
staticprotected |
◆ getLastUnSuccessCount()
getLastUnSuccessCount |
( |
| ) |
|
|
protected |
◆ getLicense()
◆ getLicenseHash()
static getLicenseHash |
( |
| ) |
|
|
staticprotected |
Returns md5 hash of the license key.
- Возвращает
- string md5 hash of the license key.
См. определение в файле restclient.php строка 318
◆ getRedirectUri()
static getRedirectUri |
( |
| ) |
|
|
staticprotected |
Internal method for usage in registration process.
- Возвращает
- string URL of the host.
См. определение в файле restclient.php строка 304
◆ getServiceHost()
- Возвращает
- string Host. Define const SALE_SRVS_RESTCLIENT_SRV_HOST to change server host.
См. определение в файле restclient.php строка 164
◆ isServerAlive()
Check if server is alive.
- Возвращает
- bool
См. определение в файле restclient.php строка 371
◆ prepareAnswer()
Decodes answer of the method.
- Аргументы
-
string | $result | Json-encoded answer. |
- Возвращает
- array|bool|mixed|string Decoded answer.
См. определение в файле restclient.php строка 179
◆ register()
Registers client on the properties service.
- Возвращает
- Result
См. определение в файле restclient.php строка 188
◆ setAccessSettings()
static setAccessSettings |
( |
array | $params | ) |
|
|
staticprotected |
Stores access credentials.
- Аргументы
-
array | $params | Access credentials. |
- Возвращает
- void
См. определение в файле restclient.php строка 253
◆ setLastUnSuccessCallInfo()
static setLastUnSuccessCallInfo |
( |
| $reset = false | ) |
|
|
staticprotected |
◆ signLicenseRequest()
static signLicenseRequest |
( |
array | $request, |
|
|
| $licenseKey ) |
|
static |
◆ $accessSettings
◆ $httpTimeout
◆ $serviceHost
$serviceHost = 'https://saleservices.bitrix.info' |
|
protected |
◆ $streamTimeout
◆ $version
◆ ERROR_NOTHING_FOUND
const ERROR_NOTHING_FOUND = 4 |
◆ ERROR_SERVICE_UNAVAILABLE
const ERROR_SERVICE_UNAVAILABLE = 3 |
◆ ERROR_WRONG_INPUT
const ERROR_WRONG_INPUT = 1 |
◆ ERROR_WRONG_LICENSE
const ERROR_WRONG_LICENSE = 2 |
◆ REGISTER_URI
◆ REST_URI
const REST_URI = '/rest/' |
◆ SCOPE
◆ SERVICE_ACCESS_OPTION
const SERVICE_ACCESS_OPTION = 'saleservices_access' |
◆ UNSUCCESSFUL_CALL_OPTION
const UNSUCCESSFUL_CALL_OPTION = 'sale_hda_last_unsuccessful_call' |
◆ UNSUCCESSFUL_CALL_TRYINGS
const UNSUCCESSFUL_CALL_TRYINGS = 3 |
◆ UNSUCCESSFUL_CALL_WAIT_INTERVAL
const UNSUCCESSFUL_CALL_WAIT_INTERVAL = 300 |