@@ 244-258 (lines=15) @@ | ||
241 | return $response; |
|
242 | } |
|
243 | ||
244 | public function getListInterestCategories(int $count = 100, int $offset = 0, string $type = null, string $listName = '') |
|
245 | { |
|
246 | $list = $this->lists->findByName($listName); |
|
247 | ||
248 | $options = [ |
|
249 | 'count' => $count, |
|
250 | 'offset' => $offset, |
|
251 | ]; |
|
252 | ||
253 | if ($type) { |
|
254 | $options['type'] = $type; |
|
255 | } |
|
256 | ||
257 | return $this->mailChimp->get("lists/{$list->getId()}/interest-categories", $options); |
|
258 | } |
|
259 | ||
260 | public function getInterestCategoryInterests(string $categoryId, int $count = 100, int $offset = 0, string $type = null, string $listName = '') |
|
261 | { |
|
@@ 260-274 (lines=15) @@ | ||
257 | return $this->mailChimp->get("lists/{$list->getId()}/interest-categories", $options); |
|
258 | } |
|
259 | ||
260 | public function getInterestCategoryInterests(string $categoryId, int $count = 100, int $offset = 0, string $type = null, string $listName = '') |
|
261 | { |
|
262 | $list = $this->lists->findByName($listName); |
|
263 | ||
264 | $options = [ |
|
265 | 'count' => $count, |
|
266 | 'offset' => $offset, |
|
267 | ]; |
|
268 | ||
269 | if ($type) { |
|
270 | $options['type'] = $type; |
|
271 | } |
|
272 | ||
273 | return $this->mailChimp->get("lists/{$list->getId()}/interest-categories/{$categoryId}/interests", $options); |
|
274 | } |
|
275 | ||
276 | public function getApi(): MailChimp |
|
277 | { |