From 5e1e147d6a5be306bbd68ae112f3d5407fe357b2 Mon Sep 17 00:00:00 2001 From: "M. Mikkel Rummelhoff" Date: Tue, 4 Jan 2022 15:04:29 +0100 Subject: [PATCH] Fixes "The requested resource could not be found" error due to ampersand in /interest-categories API request --- src/services/MailchimpSubscribeService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/MailchimpSubscribeService.php b/src/services/MailchimpSubscribeService.php index 6e4625c..bb556c3 100644 --- a/src/services/MailchimpSubscribeService.php +++ b/src/services/MailchimpSubscribeService.php @@ -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 = [];