Skip to content

Commit

Permalink
Merge pull request #121 from mmikkel/craft3
Browse files Browse the repository at this point in the history
Fixes "The requested resource could not be found" error in /interest-categories API request
  • Loading branch information
mmikkel authored Jan 4, 2022
2 parents 29ca1f3 + 5e1e147 commit a547355
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/MailchimpSubscribeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public function getInterestGroups($audienceId = '')
$categoryData['interests'] = [];

/** @var Collection $interestsResult */
$interestsResult = $mc->request('lists/' . $audienceId . '/interest-categories/' . $category->id . '/interests&count=100');
$interestsResult = $mc->request('lists/' . $audienceId . '/interest-categories/' . $category->id . '/interests', ['count' => 100]);

foreach ($interestsResult['interests'] as $interest) {
$interestData = [];
Expand Down

0 comments on commit a547355

Please sign in to comment.