The getListMemberByEmailAddress() method retrieves exactly one member with the specified email address from a specified list.
Input
[vrtypens:getListMemberByEmailAddressArgs]
session_id [xsd:string] (required)
Your API session id.
list_id [xsd:int] (required)
The id of the list being searched
email_address [xsd:string] (required)
The email address of the list member being searched for
Output
[vrtypens:ListMember]
Examples
PHP
$vr->getListMemberByEmailAddress( array( 'session_id' => $sid, 'list_id' => $lid, 'email_address' => 'customer@example.com', ) );
Ruby
vr.getListMemberByEmailAddress({ 'session_id' => sid, 'list_id' => lid, 'email_address' => 'customer@example.com', })
Java
GetListMemberByEmailAddressArgs getListMemberByEmailAddressArgs = new GetListMemberByEmailAddressArgs(); getListMemberByEmailAddressArgs.setSession_id(sessionID); getListMemberByEmailAddressArgs.setList_id(listID); getListMemberByEmailAddressArgs.setEmail_address("customer@example.com"); vr.getListMemberByEmailAddress(getListMemberByEmailAddressArgs);
C#/.NET
getListMemberByEmailAddressArgs gLMBEAA = new getListMemberByEmailAddressArgs(); gLMBEAA.session_id = sessionId; gLMBEAA.list_id = listId; gLMBEAA.email_address = "customer@example.com"; try { objVR.getListMemberByEmailAddress(gLMBEAA); } catch (Exception e) { System.Console.WriteLine(e.Message); }
Perl
$vrapi->getListMemberByEmailAddress( { session_id => $sid, list_id => $lid, email_address => 'customer@example.com' } );