Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
sqs.php
1
<?php
2
namespace
Bitrix\Rest
;
3
4
use
Bitrix\Main\Context
;
5
use
Bitrix\Main\Text\Encoding
;
6
7
class
Sqs
8
{
9
const
DATA_CHARSET
=
"utf-8"
;
10
11
const
CATEGORY_DEFAULT
=
"default"
;
12
const
CATEGORY_IMPORTANT
=
"important"
;
13
const
CATEGORY_BOT
=
"bot"
;
14
const
CATEGORY_CRM
=
"crm"
;
15
const
CATEGORY_BIZPROC
=
"bizproc"
;
16
const
CATEGORY_TELEPHONY
=
"telephony"
;
17
18
public
static
function
queryItem
($clientId, $url, $data, array $authData = array(), array $additional = array())
19
{
20
return
array(
21
'client_id'
=> $clientId,
22
'additional'
=> $additional,
23
'auth'
=> $authData,
24
'query'
=> array(
25
'DOMAIN'
=>
Context::getCurrent
()->getRequest()->getHttpHost(),
26
'QUERY_URL'
=> $url,
27
'QUERY_DATA'
=> $data,
28
),
29
);
30
}
31
}
Bitrix\Main\Context\getCurrent
static getCurrent()
Definition
context.php:241
Bitrix\Main\Text\Encoding
Definition
encoding.php:8
Bitrix\Rest\Sqs
Definition
sqs.php:8
Bitrix\Rest\Sqs\CATEGORY_CRM
const CATEGORY_CRM
Definition
sqs.php:14
Bitrix\Rest\Sqs\CATEGORY_BOT
const CATEGORY_BOT
Definition
sqs.php:13
Bitrix\Rest\Sqs\queryItem
static queryItem($clientId, $url, $data, array $authData=array(), array $additional=array())
Definition
sqs.php:18
Bitrix\Rest\Sqs\DATA_CHARSET
const DATA_CHARSET
Definition
sqs.php:9
Bitrix\Rest\Sqs\CATEGORY_DEFAULT
const CATEGORY_DEFAULT
Definition
sqs.php:11
Bitrix\Rest\Sqs\CATEGORY_TELEPHONY
const CATEGORY_TELEPHONY
Definition
sqs.php:16
Bitrix\Rest\Sqs\CATEGORY_BIZPROC
const CATEGORY_BIZPROC
Definition
sqs.php:15
Bitrix\Rest\Sqs\CATEGORY_IMPORTANT
const CATEGORY_IMPORTANT
Definition
sqs.php:12
Bitrix\Main\Context
Definition
culture.php:9
Bitrix\Rest
Definition
accessexception.php:2
modules
rest
lib
sqs.php
Создано системой
1.10.0