1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
accountyandex.php
См. документацию.
1
<?
2
3
namespace
Bitrix\Seo\Retargeting\Services;
4
5
use \Bitrix\Main\Web\Json;
6
use \Bitrix\Seo\Retargeting\Account;
7
use \Bitrix\Seo\Retargeting\Response;
8
9
class
AccountYandex
extends
Account
10
{
11
const
TYPE_CODE
=
'yandex'
;
12
13
public
function
getList
()
14
{
15
// fake
16
17
$response
=
Response::create
(static::TYPE_CODE);
18
$response
->setData(
array
(
array
(
'ID'
=> 1)));
19
20
return
$response
;
21
}
22
23
public
function
getProfile
()
24
{
25
$response
= $this->
getRequest
()->send(
array
(
26
'methodName'
=>
'retargeting.profile'
,
27
'parameters'
=>
array
()
28
));
29
30
if
(
$response
->isSuccess())
31
{
32
$data
=
$response
->fetch();
33
return
array
(
34
'ID'
=>
$data
[
'ID'
],
35
'NAME'
=>
$data
[
'REAL_NAME'
] ?:
$data
[
'LOGIN'
],
36
'LINK'
=>
''
,
37
'PICTURE'
=>
'https://avatars.mds.yandex.net/get-yapic/0/0-0/islands-50'
,
38
);
39
}
40
41
return
null
;
42
}
43
}
Bitrix\Seo\Retargeting\Account
Определения
account.php:8
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Определения
baseapiobject.php:44
Bitrix\Seo\Retargeting\Response\create
static create($type)
Определения
response.php:108
Bitrix\Seo\Retargeting\Services\AccountYandex
Определения
accountyandex.php:10
Bitrix\Seo\Retargeting\Services\AccountYandex\TYPE_CODE
const TYPE_CODE
Определения
accountyandex.php:11
Bitrix\Seo\Retargeting\Services\AccountYandex\getList
getList()
Определения
accountyandex.php:13
Bitrix\Seo\Retargeting\Services\AccountYandex\getProfile
getProfile()
Определения
accountyandex.php:23
$data
$data['IS_AVAILABLE']
Определения
.description.php:13
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
$response
$response
Определения
result.php:21
bitrix
modules
seo
lib
retargeting
services
accountyandex.php
Создано системой
1.14.0