1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Request

Открытые члены

 __construct ($apiLogin, $apiKey, $apiUrl='')
 send ($controller, $action, $data, $assoc=true)

Поля данных

const API_BASE_URL = 'https://kabinet.pecom.ru/api/v1/'

Защищенные члены

 constructApiUrl ($controller, $action)

Защищенные данные

 $apiLogin = ''
 $apiKey = ''
 $apiUrl = ''

Подробное описание

См. определение в файле request.php строка 5

Конструктор(ы)

◆ __construct()

__construct ( $apiLogin,
$apiKey,
$apiUrl = '' )

См. определение в файле request.php строка 31

Методы

◆ constructApiUrl()

constructApiUrl ( $controller,
$action )
protected

Returns full URL for API request

Аргументы
string$controllerGroup name
string$actionMethod name
Возвращает
string Full URL

См. определение в файле request.php строка 98

◆ send()

send ( $controller,
$action,
$data,
$assoc = true )

Calls API

Аргументы
string$controllerGroup name
string$actionMethod name
mixed$dataInput data
bool$assocResult format. true - array, false - object
Возвращает
mixed Result
Исключения

Exception Case error during requesting

См. определение в файле request.php строка 47

Поля

◆ $apiKey

$apiKey = ''
protected

См. определение в файле request.php строка 23

◆ $apiLogin

$apiLogin = ''
protected

См. определение в файле request.php строка 17

◆ $apiUrl

$apiUrl = ''
protected

См. определение в файле request.php строка 29

◆ API_BASE_URL

const API_BASE_URL = 'https://kabinet.pecom.ru/api/v1/'

Base default URL @const string

См. определение в файле request.php строка 11


Объявления и описания членов класса находятся в файле: