You are here

public function MailchimpReports::getCampaignReport in Mailchimp 8

Gets a specific report for a specific campaign.

Parameters

string $campaign_id: The ID of the campaign.

string $type: The type of report to generate path url.

array $parameters: Associative array of optional request parameters.

Return value

object

File

lib/mailchimp-api-php/src/MailchimpReports.php, line 68

Class

MailchimpReports
Mailchimp Reports library.

Namespace

Mailchimp

Code

public function getCampaignReport($campaign_id, $type, $parameters = []) {
  $tokens = [
    'campaign_id' => $campaign_id,
    'type' => $type,
  ];
  return $this
    ->request('GET', '/reports/{campaign_id}/{type}', $tokens, $parameters);
}