You are here

function MCAPI::listStaticSegmentAddMembers in Mailchimp 6.2

Add list members to a static segment. It is suggested that you limit batch size to no more than 10,000 addresses per call. Email addresses must exist on the list in order to be included - this <strong>will not</strong> subscribe them to the list!

Related

@returnf int success the total number of succesful updates (will include members already in the segment) @returnf array errors the email address, an error code, and a message explaining why they couldn't be added

Parameters

string $id the list id to connect to. Get by calling lists():

int $seg_id the id of the static segment to modify - get from listStaticSegments():

array $batch an array of email addresses and/or unique_ids to add to the segment:

Return value

array an array with the results of the operation

File

./MCAPI.class.php, line 1400

Class

MCAPI

Code

function listStaticSegmentAddMembers($id, $seg_id, $batch) {
  $params = array();
  $params["id"] = $id;
  $params["seg_id"] = $seg_id;
  $params["batch"] = $batch;
  return $this
    ->callServer("listStaticSegmentAddMembers", $params);
}