public function MailchimpCampaigns::getCampaign in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/src/MailchimpCampaigns.php \Mailchimp\MailchimpCampaigns::getCampaign()
- 8 lib/mailchimp-api-php/tests/src/MailchimpCampaigns.php \Mailchimp\Tests\MailchimpCampaigns::getCampaign()
@inheritdoc
Overrides MailchimpCampaigns::getCampaign
File
- lib/
mailchimp-api-php/ tests/ src/ MailchimpCampaigns.php, line 30
Class
- MailchimpCampaigns
- Mailchimp Campaigns library test cases.
Namespace
Mailchimp\TestsCode
public function getCampaign($campaign_id, $parameters = []) {
parent::getCampaign($campaign_id, $parameters);
$response = (object) [
'id' => $campaign_id,
'type' => 'regular',
'recipients' => (object) [
'list_id' => '57afe96172',
],
'settings' => (object) [
'subject_line' => 'Test Campaign',
],
'tracking' => (object) [
'html_clicks' => TRUE,
'text_clicks' => FALSE,
],
];
return $response;
}