You are here

interface MailchimpHttpClientInterface in Mailchimp 8

Interface for all HTTP clients used with the Mailchimp library.

@package Mailchimp

Hierarchy

Expanded class hierarchy of MailchimpHttpClientInterface

All classes that implement MailchimpHttpClientInterface

2 files declare their use of MailchimpHttpClientInterface
Mailchimp.php in lib/mailchimp-api-php/src/Mailchimp.php
MailchimpTestHttpClient.php in lib/mailchimp-api-php/tests/src/MailchimpTestHttpClient.php

File

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

Namespace

Mailchimp\http
View source
interface MailchimpHttpClientInterface {

  /**
   * Makes a request to the Mailchimp API.
   *
   * @param string $method
   *   The REST method to use when making the request.
   * @param string $uri
   *   The API URI to request.
   * @param array $options
   *   Request options. @see Mailchimp::request().
   * @param array $parameters
   *   Associative array of parameters to send in the request body.
   * @param bool $returnAssoc
   *   TRUE to return Mailchimp API response as an associative array.
   *
   * @return object
   *
   * @throws \Exception
   */
  public function handleRequest($method, $uri = '', $options = [], $parameters = [], $returnAssoc = FALSE);

}

Members

Namesort descending Modifiers Type Description Overrides
MailchimpHttpClientInterface::handleRequest public function Makes a request to the Mailchimp API. 3