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

Recipients Get Actions History
Footer

Recipients Get Actions History

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 get a list of a recipient's actions

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=44;

inwise.ArrayOfFeedbackResponse actions = inwiseWebServicesSoap.recipientsGetActionsHistory(recipientid);
List<FeedbackResponse> list=actions.getFeedbackResponse();
Iterator<FeedbackResponse> it= list.iterator();
while (it.hasNext()){
FeedbackResponse action= it.next();
XMLGregorianCalendar actionDate = action.getActionDate();//the date of the action
int id = action.getAid();//the action id
int actionType = action.getAction();//the action type/code
String additionalDetails = action.getRemarks();//some actions have additional details
int sendid = action.getSendid();//the sendid of the message for which the action was recorded
}

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 id

        int recipientid = 44;

 

        //call the operation

        InwiseWebServices.FeedbackResponse[] actions = ws.Recipients_GetActionsHistory(recipientid);

        foreach (InwiseWebServices.FeedbackResponse action in actions)

        {

            DateTime actionDate = action.ActionDate;//the date of the action

            int id = action.Aid;//the action id

            int actionType = action.Action;//the action type/code

            string additionalDetails = action.Remarks;//some actions have additional details

            int sendid = action.Sendid;//the sendid of the message for which the action was recorded

        }

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 id

        Dim recipientid As Integer = 44

 

        'call the operation

        Dim actions() As InwiseWebServices.FeedbackResponse = ws.Recipients_GetActionsHistory(recipientid)

        Dim action As InwiseWebServices.FeedbackResponse

        For Each action In actions

            Dim actionDate As DateTime = action.ActionDate 'the date of the action

            Dim id As Integer = action.Aid 'the action id

            Dim actionType As Integer = action.Action 'the action type/code

            Dim additionalDetails As String = action.Remarks 'some actions have additional details

            Dim sendid As Integer = action.Sendid 'the sendid of the message for which the action was recorded

        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.