Back to Documentation Overview

listMemberInfo

public static listMemberInfo(string uid, string id, string email_address)

Get all the information for a particular member of a list

Section:
List Related
Parameters:
uid the id for your user account. Get by calling login($user, $pass)
id the list id to connect to
email_address the member email address to get information for
Returns:
array   -  array of list member info (see Returned Fields for details)
Returned Fields:
string email The email address associated with this record
string email_type The type of emails this customer asked to get: html or text
array merges An associative array of all the merge tags and the data for those tags for this email address
string status The subscription status for this email address, either subscribed, unsubscribed or cleaned
date timestamp The time this email address was added to the list

Examples (1)

download example code

[1] mcapi_listMemberInfo.php

  1. <?php
  2. /**
  3. This Example shows how to pull the Info for a Member of a List using the MCAPI.php
  4. class and do some basic error checking.
  5. **/
  6. // Include the MailChimp API code. Do Not Edit This!
  7. include('inc/MCAPI.class.php');
  8. include('config.inc.php'); //contains username & password
  9.  
  10. // Connect to the MailChimp server with the user's credentials.
  11. $acct = new MCAPI($mailChimpUser, $mailChimpPass);
  12.  
  13. $retval = $acct->listMemberInfo( $listId, $member_email );
  14.  
  15. if (!$retval){
  16. echo "Unable to load listMemberInfo()!\n";
  17. echo "\tCode=".$acct->errorCode."\n";
  18. echo "\tMsg=".$acct->errorMessage."\n";
  19. } else {
  20. //do something useful!
  21. var_dump($retval);
  22. }
  23. ?>
  24.  
Add New Note User Contributed Notes for listMemberInfo
No notes, yet... Will you be the first??