public function Mailchimp::setClient in Mailchimp 8
Sets a custom HTTP client to be used for all API requests.
Parameters
\Mailchimp\http\MailchimpHttpClientInterface $client: The HTTP client.
File
- lib/
mailchimp-api-php/ src/ Mailchimp.php, line 125
Class
- Mailchimp
- Mailchimp library.
Namespace
MailchimpCode
public function setClient(MailchimpHttpClientInterface $client) {
$this->client = $client;
}