1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
requestyandex.php
См. документацию.
1
<?
2
3
namespace
Bitrix\Seo\Retargeting\Services;
4
5
use Bitrix\Seo\Retargeting\ProxyRequest;
6
7
class
RequestYandex
extends
ProxyRequest
8
{
9
const
TYPE_CODE
=
'yandex'
;
10
const
REST_METHOD_PREFIX
=
'seo.client.ads.yandex'
;
11
12
protected
function
directQuery
(
array
$params
=
array
())
13
{
14
$this->endpoint =
$params
[
'endpoint'
];
15
16
$url
=
'https://api-audience.yandex.ru/v1/management/'
;
17
$url
.=
$params
[
'endpoint'
];
18
19
$clientParameters = is_array(
$params
[
'fields'
]) ?
$params
[
'fields'
] :
array
();
20
$this->client->setHeader(
'Authorization'
,
'OAuth '
. $this->adapter->getToken());
21
22
if
(
$params
[
'method'
] ==
'GET'
)
23
{
24
$url
.=
'?'
. http_build_query($clientParameters,
""
,
"&"
);
25
return
$this->client->get(
$url
);
26
}
27
elseif
(
$params
[
'method'
] ==
'DELETE'
)
28
{
29
return
$this->client->delete(
$url
, $clientParameters,
true
);
30
}
31
else
32
{
33
return
$this->client->post(
$url
, $clientParameters,
true
);
34
}
35
}
36
}
Bitrix\Seo\Retargeting\ProxyRequest
Определения
proxyrequest.php:9
Bitrix\Seo\Retargeting\Services\RequestYandex
Определения
requestyandex.php:8
Bitrix\Seo\Retargeting\Services\RequestYandex\TYPE_CODE
const TYPE_CODE
Определения
requestyandex.php:9
Bitrix\Seo\Retargeting\Services\RequestYandex\REST_METHOD_PREFIX
const REST_METHOD_PREFIX
Определения
requestyandex.php:10
Bitrix\Seo\Retargeting\Services\RequestYandex\directQuery
directQuery(array $params=array())
Определения
requestyandex.php:12
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
elseif
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
Определения
prolog_main_admin.php:393
$params
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения
template.php:799
$url
$url
Определения
iframe.php:7
bitrix
modules
seo
lib
retargeting
services
requestyandex.php
Создано системой
1.14.0