I have installed the Mailchimp PHP client library on my web app and want to generate a list of all the tags I have used. The stock code works but seems to be limited to 10 responses. If I use curl instead the library functions I can set the count parameter and get all 25 tags. It doesn’t seem like the library function accepts the count as in input. How can I get more than 10 tags returned using the library?
My working, albeit limited, library code is:
require_once $_SERVER['DOCUMENT_ROOT'] . '/includes/mailchimp/vendor/autoload.php';
$client = new MailchimpMarketingApiClient();
$client->setConfig([
'apiKey' => $MC_apiKey,
'server' => 'us17'
]);
$response = $client->lists->tagSearch($MC_listID);
var_dump($response);
I can get all 25 tags if I use curl url such as this:
$MC_url = 'https://' . $MC_dataCenter . '.api.mailchimp.com/3.0/lists/' . $MC_listID . '/tag-search?count=50';
Many thanks in advance!