By sending a request that contains list ID and email address, you can obtain full information about the email of a specific recipient.
listMemberInfo(string $id, string $email_address) : array
Information about email (array):
listMemberInfo($id, $email_address); header("Content-Type: text/plain"); if ($api->errorCode) { echo "Unable to load listMemberInfo()!\n"; echo "\tCode=" . $api->errorCode . "\n"; echo "\tMsg=" . $api->errorMessage . "\n"; } else { foreach ($retval as $k => $v) { if (is_array($v)) { //handle the merges foreach ($v as $l => $w) { echo "\t$l = $w\n"; } } else { echo "$k = $v\n"; } } }
new xmlrpcval($apikey), 'id' => new xmlrpcval($listId), 'email_address' => new xmlrpcval($my_email) ), 'struct'); $f = new xmlrpcmsg('listMemberInfo', array($v)); $c = new xmlrpc_client($apiUrl["path"], $apiUrl['host'], 80); $c->setDebug($debug); $r = &$c->send($f); header("Content-Type: text/plain"); if (!$r->faultCode()) { $retval = php_xmlrpc_decode($r->value()); foreach ($retval as $k => $v) { if (is_array($v)) { //handle the merges foreach ($v as $l => $w) { echo "\t$l = $w\n"; } } else { echo "$k = $v\n"; } } } else { echo "Unable to run listMemberInfo()!\n"; echo "\tCode=" . $r->faultCode() . "\n"; echo "\tMsg=" . $r->faultString() . "\n"; }
from lib.config import * #contains apikey from lib.MGAPI import MGAPI # This Example shows how to ping using the MGAPI.php class and do some basic error checking. api = MGAPI(apikey) id = listId email_address = my_email retval = api.listMemberInfo(id, email_address) if api.errorCode: print "Unable to load listMemberInfo()!" print "\tCode=", api.errorCode print "\tMsg=", api.errorMessage else: for k,v in retval.items(): if isinstance(v, dict): #handle the merges for l,w in v.items(): print "\t", l, " = ", w elif isinstance(v, list): #handle the merges for l,w in enumerate(v): print "\t", l, " = ", w else: print k, " = ", v