inwise - email marketing and newsletter software company
 
inwise Top Background
Arrow on Service

Recipients Get Messages
Footer

Recipients Get Messages

Operation Name: operation Name
Description: description

All actions require a valid user name and password using authenticaion header.
Show a raw xml example including the authentication header.

Service url:https://api.inwise.com/InwiseWebServices.asmx

Adding a reference to inwise web services

User Name:
Password:  
Recipient id: 
The service enables you to view a summary of all the messages sent to one recipient.

Parameters:

  • int recipientid
    The id of the recipient.

Java Code:

//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 id
int recipientid=10937671;

inwise.ArrayOfMessagesDetailsSummary messages = inwiseWebServicesSoap.recipientsGetMessages(recipientid);
List<MessagesDetailsSummary> list= messages.getMessagesDetailsSummary();
Iterator<MessagesDetailsSummary> it= list.iterator();
while (it.hasNext()){
MessagesDetailsSummary message= it.next();
String messageName = message.getMessageName();//the internal name of the message
String subject = message.getSubject();//the message subject
XMLGregorianCalendar sendDate = message.getSendDate();//the send date
int sendid = message.getSendId();//the unique send id of the message
}

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 = "myUsername";

        header.pass = "myPassword";

        ws.SecHeaderValue = header;//set credentials

 

        //the recipient id

        int recipientid = 120423;

 

        //call the operation

        InwiseWebServices.MessagesDetailsSummary[] messages = ws.Recipients_GetMessages(recipientid);

 

        //now we have a list of message sent to the recipient

        for (int i = 0; i < messages.Length; i++)

        {

            string messageName = messages[i].MessageName;//the internal name of the message

            string subject = messages[i].Subject;//the message subject

            DateTime sendDate = messages[i].SendDate;//the send date

            int sendid = messages[i].SendId;//the unique send id of the message

        }

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 = "myUsername"

        header.pass = "myPassword"

        ws.SecHeaderValue = header 'set credentials

 

        'the recipient id

        Dim recipientid As Integer = 120423

 

        'call the operation

        Dim messages() As InwiseWebServices.MessagesDetailsSummary = ws.Recipients_GetMessages(recipientid)

 

        'now we have a list of message sent to the recipient

        Dim i As Integer

        For i = 0 To messages.Length - 1 Step i + 1

            Dim messageName As String = messages(i).MessageName 'the internal name of the message

            Dim subject As String = messages(i).Subject 'the message subject

            Dim sendDate As DateTime = messages(i).SendDate 'the send date

            Dim sendid As Integer = messages(i).SendId 'the unique send id of the message

        Next




Home  |  About us  |  Products  |  Service  |  Partners  |  Forum  |  Email Marketing Terms  |  Support  |  Contact us
Terms & Conditions  |  Privacy Policy  |  Anti Spam Policy  |  Site Map
© 2008 inwise LTD. All rights reserved.