The operation enables you to get the recipient's unique id through his/her email address.
Parameters:
-
String email
The email of the recipient.
Java Code:
//get a reference to the service
//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();
//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);
//the recipient's email
String email = "email@email.com";
//call the operation
int recipientid = inwiseWebServicesSoap.recipientsGetRecipientId(email);
C# Code:
//get a reference to the service
InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();
//fill the security header
InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();
header.username = "username";
header.pass = "myPassword";
ws.SecHeaderValue = header;//set credentials
//the recipient's email
string email = "email@email.com";
//call the operation
int recipientid = ws.Recipients_GetRecipientId(email);
VB Code:
'get a reference to the service
Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()
'fill the security header
Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()
header.username = "username"
header.pass = "myPassword"
ws.SecHeaderValue = header 'set credentials
'the recipient's email
Dim email As String = "email@email.com"
'call the operation
Dim recipientid As Integer = ws.Recipients_GetRecipientId(email)