class MailchimpConnectedSites in Mailchimp 8
Mailchimp Connected Sites library.
@package Mailchimp
Hierarchy
- class \Mailchimp\Mailchimp
- class \Mailchimp\MailchimpConnectedSites
Expanded class hierarchy of MailchimpConnectedSites
See also
https://kb.mailchimp.com/integrations/connected-sites/about-connected-sites
2 string references to 'MailchimpConnectedSites'
- MailchimpAdminSettingsForm::buildForm in src/
Form/ MailchimpAdminSettingsForm.php - Form constructor.
- mailchimp_page_bottom in ./
mailchimp.module - Implements hook_page_bottom().
File
- lib/
mailchimp-api-php/ src/ MailchimpConnectedSites.php, line 12
Namespace
MailchimpView source
class MailchimpConnectedSites extends Mailchimp {
/**
* Gets information about all connected sites for the authenticated account.
*
* @param array $parameters
* Associative array of optional request parameters.
*
* @return object
*/
public function getConnectedSites($parameters = []) {
return $this
->request('GET', '/connected-sites', NULL, $parameters);
}
/**
* Gets a connected site.
*
* @param string $connected_site_id
* The ID of the connected site.
* @param array $parameters
* Associative array of optional request parameters.
*
* @return object
*/
public function getConnectedSite($connected_site_id, $parameters = []) {
$tokens = [
'connected_site_id' => $connected_site_id,
];
return $this
->request('GET', '/connected-sites/{connected_site_id}', $tokens, $parameters);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Mailchimp:: |
private | property | The Mailchimp API key to authenticate with. | |
Mailchimp:: |
private | property | The Mailchimp API username to authenticate with. | |
Mailchimp:: |
private | property | Array of pending batch operations. | |
Mailchimp:: |
protected | property | The HTTP client. | |
Mailchimp:: |
private | property | A Mailchimp API error code to return with every API response. | |
Mailchimp:: |
protected | property | The REST API endpoint. | |
Mailchimp:: |
public | property | API version. | |
Mailchimp:: |
protected | function | Adds a pending batch operation. | |
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
constant | |||
Mailchimp:: |
public | function | Gets Mailchimp account information for the authenticated account. | |
Mailchimp:: |
public | function | Gets the status of a batch request. | |
Mailchimp:: |
private | function | Gets the ID of the data center associated with an API key. | |
Mailchimp:: |
private | function | Instantiates a default HTTP client based on the local environment. | |
Mailchimp:: |
public | function | Processes all pending batch operations. | |
Mailchimp:: |
public | function | Makes a request to the Mailchimp API. | |
Mailchimp:: |
public | function | Sets a custom HTTP client to be used for all API requests. | |
Mailchimp:: |
public | function | Sets a Mailchimp error code to be returned by all requests. | |
Mailchimp:: |
constant | |||
Mailchimp:: |
public | function | Mailchimp constructor. | 7 |
MailchimpConnectedSites:: |
public | function | Gets a connected site. | |
MailchimpConnectedSites:: |
public | function | Gets information about all connected sites for the authenticated account. |