You are here

public function MailchimpHttpClientInterface::handleRequest in Mailchimp 8

Makes a request to the Mailchimp API.

Parameters

string $method: The REST method to use when making the request.

string $uri: The API URI to request.

array $options: Request options. @see Mailchimp::request().

array $parameters: Associative array of parameters to send in the request body.

bool $returnAssoc: TRUE to return Mailchimp API response as an associative array.

Return value

object

Throws

\Exception

3 methods override MailchimpHttpClientInterface::handleRequest()
MailchimpCurlHttpClient::handleRequest in lib/mailchimp-api-php/src/http/MailchimpCurlHttpClient.php
@inheritdoc
MailchimpGuzzleHttpClient::handleRequest in lib/mailchimp-api-php/src/http/MailchimpGuzzleHttpClient.php
@inheritdoc
MailchimpTestHttpClient::handleRequest in lib/mailchimp-api-php/tests/src/MailchimpTestHttpClient.php
@inheritdoc

File

lib/mailchimp-api-php/src/http/MailchimpHttpClientInterface.php, line 30

Class

MailchimpHttpClientInterface
Interface for all HTTP clients used with the Mailchimp library.

Namespace

Mailchimp\http

Code

public function handleRequest($method, $uri = '', $options = [], $parameters = [], $returnAssoc = FALSE);