I have the following code
<?php
require_once('..\..\..\..\..\Users\rodri\vendor\autoload.php');
$mailchimp = new \MailchimpMarketing\ApiClient();
$mailchimp->setCOnfig([
'apiKey' => 'YOUR_API_KEY',
'server' => 'YOUR_SERVER_PREFIX'
]);
$response = $mailchimp->ping->get();
print_r($response);
?>
But the local server throws me the following error. And I don't understand why it happens.
Error: Class 'MailchimpMarketing\ApiClient' not found in C:\wamp64\www\Estelio\mailChimp\crearApi\index.php on line 4
Thank you for your help.