public function MailchimpLists::getMergeFields in Mailchimp 8
Same name in this branch
- 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::getMergeFields()
- 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::getMergeFields()
@inheritdoc
Overrides MailchimpLists::getMergeFields
File
- lib/
mailchimp-api-php/ tests/ src/ MailchimpLists.php, line 113
Class
- MailchimpLists
- Mailchimp Lists library test cases.
Namespace
Mailchimp\TestsCode
public function getMergeFields($list_id, $parameters = []) {
parent::getMergeFields($list_id, $parameters);
$response = (object) [
'merge_fields' => [
(object) [
'merge_id' => 1,
'tag' => 'FNAME',
'list_id' => $list_id,
],
(object) [
'merge_id' => 2,
'tag' => 'LNAME',
'list_id' => $list_id,
],
],
'total_items' => 2,
];
return $response;
}