You are here

public function MailchimpLists::getMergeFields in Mailchimp 8

Same name in this branch
  1. 8 lib/mailchimp-api-php/src/MailchimpLists.php \Mailchimp\MailchimpLists::getMergeFields()
  2. 8 lib/mailchimp-api-php/tests/src/MailchimpLists.php \Mailchimp\Tests\MailchimpLists::getMergeFields()

Gets merge fields associated with a Mailchimp list.

Parameters

string $list_id: The ID of the list.

array $parameters: Associative array of optional request parameters.

Return value

object

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/lists/m...

1 call to MailchimpLists::getMergeFields()
MailchimpLists::getMergeFields in lib/mailchimp-api-php/tests/src/MailchimpLists.php
@inheritdoc
1 method overrides MailchimpLists::getMergeFields()
MailchimpLists::getMergeFields in lib/mailchimp-api-php/tests/src/MailchimpLists.php
@inheritdoc

File

lib/mailchimp-api-php/src/MailchimpLists.php, line 106

Class

MailchimpLists
Mailchimp Lists/Audiences library.

Namespace

Mailchimp

Code

public function getMergeFields($list_id, $parameters = []) {
  $tokens = [
    'list_id' => $list_id,
  ];
  return $this
    ->request('GET', '/lists/{list_id}/merge-fields', $tokens, $parameters);
}