Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
postlistfacebook.php
1<?
2
4
6
8{
9 const TYPE_CODE = 'facebook';
10
11 public function getList($params)
12 {
13 $parameters = [
14 'accountId' => $params['accountId'],
15 ];
16
17 if(isset($params['limit']))
18 {
19 $parameters['limit'] = $params['limit'];
20 }
21
22 if(isset($params['last']))
23 {
24 $parameters['last'] = $params['last'];
25 }
26
27 $response = $this->getRequest()->send(array(
28 'methodName' => 'marketing.post.list',
29 'parameters' => $parameters
30 ));
31
32 if ($response->isSuccess())
33 {
34 return $response->getData();
35 }
36
37 return null;
38 }
39}
Definition postlist.php:8
const TYPE_CODE
getList($params)