1 | <?php |
||
20 | class Account extends Analytics |
||
21 | { |
||
22 | |||
23 | const RESOURCE_REPLACE = '{account_id}'; |
||
24 | const RESOURCE_COLLECTION = 'accounts'; |
||
25 | const RESOURCE = 'accounts/{account_id}'; |
||
26 | const FEATURES = 'accounts/{account_id}/features'; |
||
27 | const APP_LISTS = 'accounts/{account_id}/app_lists'; |
||
28 | const SCOPED_TIMELINE = 'accounts/{account_id}/scoped_timeline'; |
||
29 | const AUTHENTICATED_USER_ACCESS = 'accounts/{account_id}/authenticated_user_access'; |
||
30 | |||
31 | const ENTITY = 'ACCOUNT'; |
||
32 | |||
33 | protected $id; |
||
34 | protected $salt; |
||
35 | protected $name; |
||
36 | protected $timezone; |
||
37 | protected $timezone_switch_at; |
||
38 | protected $created_at; |
||
39 | protected $updated_at; |
||
40 | protected $deleted; |
||
41 | protected $approval_status; |
||
42 | |||
43 | /** |
||
44 | * @param array $params |
||
45 | * @return Resource |
||
46 | */ |
||
47 | public function read($params = []) |
||
52 | |||
53 | /** |
||
54 | * Returns a collection of features available to the current account. |
||
55 | * |
||
56 | * @return mixed |
||
57 | * |
||
58 | * @throws TwitterAdsException |
||
59 | */ |
||
60 | public function getFeatures() |
||
69 | |||
70 | /** |
||
71 | * Returns a collection of promotable users available to the current account. |
||
72 | * |
||
73 | * @param string $id |
||
74 | * |
||
75 | * @param array $params |
||
76 | * @return PromotableUser|Cursor |
||
77 | */ |
||
78 | public function getPromotableUsers($id = '', $params = []) |
||
84 | |||
85 | /** |
||
86 | * Returns a collection of funding instruments available to the current account. |
||
87 | * |
||
88 | * @param string $id |
||
89 | * |
||
90 | * @param array $params |
||
91 | * @return FundingInstrument|Cursor |
||
92 | */ |
||
93 | public function getFundingInstruments($id = '', $params = []) |
||
99 | |||
100 | /** |
||
101 | * Returns a collection of campaigns available to the current account. |
||
102 | * |
||
103 | * @param string $id |
||
104 | * |
||
105 | * @param array $params |
||
106 | * @return Campaign|Cursor |
||
107 | */ |
||
108 | public function getCampaigns($id = '', $params = []) |
||
114 | |||
115 | /** |
||
116 | * Returns a collection of line items available to the current account. |
||
117 | * |
||
118 | * @param string $id |
||
119 | * |
||
120 | * @param array $params |
||
121 | * @return LineItem|Cursor |
||
122 | */ |
||
123 | public function getLineItems($id = '', $params = []) |
||
129 | |||
130 | /** |
||
131 | * Returns a collection of app lists available to the current account. |
||
132 | * |
||
133 | * @param string $id |
||
134 | * |
||
135 | * @param array $params |
||
136 | * @return AppList|Cursor |
||
137 | */ |
||
138 | public function getAppLists($id = '', $params = []) |
||
144 | |||
145 | |||
146 | public function getTailoredAudiences($id = '', $params = []) |
||
150 | |||
151 | /** |
||
152 | * Returns a collection of videos available to the current account. |
||
153 | * |
||
154 | * @param string $id |
||
155 | * @param array $params |
||
156 | * @return Cursor|Video |
||
157 | */ |
||
158 | public function getVideos($id = '', $params = []) |
||
164 | |||
165 | /** |
||
166 | * Returns the most recent promotable Tweets created by one or more specified Twitter users. |
||
167 | * |
||
168 | * @param $ids |
||
169 | * @param $params |
||
170 | */ |
||
171 | public function getScopedTimeline($ids, $params) |
||
185 | |||
186 | /** |
||
187 | * @return string |
||
188 | */ |
||
189 | public function getId() |
||
193 | |||
194 | /** |
||
195 | * @return string |
||
196 | */ |
||
197 | public function getSalt() |
||
201 | |||
202 | /** |
||
203 | * @return mixed |
||
204 | */ |
||
205 | public function getTimezone() |
||
209 | |||
210 | /** |
||
211 | * @return \DateTimeImmutable |
||
212 | */ |
||
213 | public function getTimezoneSwitchAt() |
||
217 | |||
218 | /** |
||
219 | * @return \DateTimeImmutable |
||
220 | */ |
||
221 | public function getCreatedAt() |
||
225 | |||
226 | /** |
||
227 | * @return \DateTimeImmutable |
||
228 | */ |
||
229 | public function getUpdatedAt() |
||
233 | |||
234 | /** |
||
235 | * @return mixed |
||
236 | */ |
||
237 | public function getDeleted() |
||
241 | |||
242 | /** |
||
243 | * @return mixed |
||
244 | */ |
||
245 | public function getApprovalStatus() |
||
249 | |||
250 | /** |
||
251 | * @return string |
||
252 | */ |
||
253 | public function getName() |
||
257 | } |
||
258 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.