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.
- abuse-reports @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- advice @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- click-details @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- domain-performance @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- eepurl @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- email-activity @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- locations @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- sent-to @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- sub-reports @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
- unsubscribed @see http://developer.mailchimp.com/documentation/mailchimp/reference/reports...
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
MailchimpCode
public function getCampaignReport($campaign_id, $type, $parameters = []) {
$tokens = [
'campaign_id' => $campaign_id,
'type' => $type,
];
return $this
->request('GET', '/reports/{campaign_id}/{type}', $tokens, $parameters);
}