Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
accountfacebook.php
1
<?
2
3
namespace
Bitrix\Seo\Marketing\Services
;
4
5
use
Bitrix\Seo\Marketing\Account
;
6
7
class
AccountFacebook
extends
Account
8
{
9
const
TYPE_CODE
=
'facebook'
;
10
11
protected
static
$listRowMap
= array(
12
'ID'
=>
'ACCOUNT_ID'
,
13
'NAME'
=>
'NAME'
,
14
);
15
16
public
function
getList
()
17
{
18
return
$this->
getRequest
()->send(array(
19
'methodName'
=>
'marketing.account.list'
,
20
'parameters'
=> array()
21
));
22
}
23
24
public
function
getProfile
()
25
{
26
$response = $this->
getRequest
()->send(array(
27
'methodName'
=>
'marketing.profile'
,
28
'parameters'
=> array()
29
));
30
31
if
($response->isSuccess())
32
{
33
$data = $response->fetch();
34
return
array(
35
'ID'
=> $data[
'ID'
],
36
'NAME'
=> $data[
'NAME'
],
37
'LINK'
=> $data[
'LINK'
],
38
'CURRENCY'
=> $data[
'CURRENCY'
],
39
'PICTURE'
=> $data[
'PICTURE'
] ? $data[
'PICTURE'
][
'data'
][
'url'
] :
null
,
40
);
41
}
42
43
return
null
;
44
}
45
46
public
function
getInstagramList
()
47
{
48
return
$this->
getRequest
()->send(array(
49
'methodName'
=>
'marketing.account.instagram.list'
,
50
'parameters'
=> array()
51
));
52
}
53
}
Bitrix\Seo\Marketing\Account
Definition
account.php:13
Bitrix\Seo\Marketing\Services\AccountFacebook
Definition
accountfacebook.php:8
Bitrix\Seo\Marketing\Services\AccountFacebook\$listRowMap
static $listRowMap
Definition
accountfacebook.php:11
Bitrix\Seo\Marketing\Services\AccountFacebook\TYPE_CODE
const TYPE_CODE
Definition
accountfacebook.php:9
Bitrix\Seo\Marketing\Services\AccountFacebook\getList
getList()
Definition
accountfacebook.php:16
Bitrix\Seo\Marketing\Services\AccountFacebook\getInstagramList
getInstagramList()
Definition
accountfacebook.php:46
Bitrix\Seo\Marketing\Services\AccountFacebook\getProfile
getProfile()
Definition
accountfacebook.php:24
Bitrix\Seo\Retargeting\BaseApiObject\getRequest
getRequest()
Definition
baseapiobject.php:44
Bitrix\Seo\Marketing\Services
Definition
accountfacebook.php:3
modules
seo
lib
marketing
services
accountfacebook.php
Создано системой
1.10.0