Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
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
Definition
account.php:8
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Definition
baseapiobject.php:44
Bitrix\Seo\Retargeting\Response\create
static create($type)
Definition
response.php:108
Bitrix\Seo\Retargeting\Services\AccountYandex
Definition
accountyandex.php:10
Bitrix\Seo\Retargeting\Services\AccountYandex\TYPE_CODE
const TYPE_CODE
Definition
accountyandex.php:11
Bitrix\Seo\Retargeting\Services\AccountYandex\getList
getList()
Definition
accountyandex.php:13
Bitrix\Seo\Retargeting\Services\AccountYandex\getProfile
getProfile()
Definition
accountyandex.php:23
Bitrix\Seo\Retargeting\Services
Definition
accountfacebook.php:3
modules
seo
lib
retargeting
services
accountyandex.php
Создано системой
1.10.0