The service enables you to view a list of feedback form actions for a message.
The operation returns an Array of FeedbackResponse objects with the following fields set:
-
Aid - the id of the record.
-
ActionDate - the date of the action.
-
Recipientid - the id of the recipient who made the action.
-
Sendid - the send id of the message which caused the operation.
-
Action - the code of the action. A translation table is available through another service.
-
Remarks - some actions have additional data.
Parameters:
-
int sendid
The send id of the message.
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 sendid of the message
int sendid = 144;
//call the operation
inwise.ArrayOfFeedbackResponse fbActions = inwiseWebServicesSoap.statisticsGetFeedBackForSendid(sendid);
Iterator<FeedbackResponse> it=fbActions.getFeedbackResponse().iterator();
while(it.hasNext())
{
FeedbackResponse action = it.next();
int rowId = action.getAid();//the record id for tracking
XMLGregorianCalendar actionDate = action.getActionDate();//the date of the action
int actionCode = action.getAction();//the action code
int recipientid = action.getRecipientid();//the recipient id
String remarks = action.getRemarks();//some actions have additional data
}
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 sendid of the message
int sendid = 144;
//call the operation
InwiseWebServices.FeedbackResponse[] actions = ws.Statistics_GetFeedBackFormForSendid(sendid);
for (int i = 0; i < actions.Length; i++)
{
InwiseWebServices.FeedbackResponse action = actions[i];
int rowId = action.Aid;//the record id for tracking
DateTime actionDate = action.ActionDate;//the date of the action
int actionCode = action.Action;//the action code
int recipientid = action.Recipientid;//the recipient id
string remarks = action.Remarks;//some actions have additional data
}
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 sendid of the message
Dim sendid As Integer = 144
'call the operation
Dim actions() As InwiseWebServices.FeedbackResponse = ws.Statistics_GetFeedBackFormForSendid(sendid)
Dim i As Integer
For i = 0 To actions.Length - 1 Step i + 1
Dim action As InwiseWebServices.FeedbackResponse = actions(i)
Dim rowId As Integer = action.Aid 'the record id for tracking
Dim actionDate As DateTime = action.ActionDate 'the date of the action
Dim actionCode As Integer = action.Action 'the action code
Dim recipientid As Integer = action.Recipientid 'the recipient id
Dim remarks As String = action.Remarks 'some actions have additional data
Next