You are here

public function MailchimpLists::getSegment in Mailchimp 8

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

Gets a Mailchimp list segment.

Parameters

string $list_id: The ID of the list.

string $segment_id: The ID of the list segment.

array $parameters: Associative array of optional request parameters.

Return value

object

See also

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

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

File

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

Class

MailchimpLists
Mailchimp Lists/Audiences library.

Namespace

Mailchimp

Code

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