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!
Signature
public function listStaticSegmentMembersAdd(string
$id,
int
$seg_id,
array
$batch )
Parameters
$id
—
string
the list id to connect to. Get by calling lists()
$seg_id
—
int
the id of the static segment to modify - get from listStaticSegments()
$batch
—
array
an array of email addresses and/or unique_ids to add to the segment
Returns
array
an array with the results of the operation int success the total number of successful updates (will include members already in the segment)
array errors error data including:
string email address the email address in question
string code the error code
string msg the full error message