Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
accountinstagram.php
1<?
2
4
6{
7 const TYPE_CODE = 'instagram';
8
12 protected function getPublisherPlatforms()
13 {
14 return ['instagram'];
15 }
16
20 public function hasPublicPages()
21 {
22 return false;
23 }
24
25 protected function prepareExpensesData($data)
26 {
27 if (is_array($data['actions']))
28 {
29 $actions = [];
30 foreach ($data['actions'] as $action)
31 {
32 $actions[$action['action_type']] = $action['value'];
33 }
34
35 $data['actions'] = $actions['link_click']
36 + $actions['post']
37 + $actions['comment']
38 ;
39 }
40
41 return $data;
42 }
43}