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

Statistics Get Message Results
Footer

Statistics Get Message Results

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:  
Send id: 
The service enables you to view statistics results summary for a message.
The operation returns a MessageStatistics object with the following fields:
  • Bounces - total number of bounces for the message
  • Clicks - total number of clicks on the message
  • ClicksUnique - the unique clicks on the message
  • Opens - total number of times the message has been opened
  • OpensUnique - the unique number the message was opened
  • Sent - to how many recipients the message has been sent

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.MessageStatistics stat = inwiseWebServicesSoap.statisticsGetMessageResults(sendid);
int bounces = stat.getBounces();//total number of bounces for the message
int clickc = stat.getClicks();//total number of clicks on the message
int clicksUnique = stat.getClicksUnique();//the unique clicks on the message
int opens = stat.getOpens();//total number of times the message has been opened
int opensUnique = stat.getOpensUnique();//the unique number the message was opened
int sent = stat.getSent();//to how many recipients the message has been sent

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.MessageStatistics stat = ws.Statistics_GetMessageResults(sendid);

        int bounces = stat.Bounces;//total number of bounces for the message

        int clickc = stat.Clicks;//total number of clicks on the message

        int clicksUnique = stat.ClicksUnique;//the unique clicks on the message

        int opens = stat.Opens;//total number of times the message has been opened

        int opensUnique = stat.OpensUnique;//the unique number the message was opened

        int sent = stat.Sent;//to how many recipients the message has been sent

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 stat As InwiseWebServices.MessageStatistics = ws.Statistics_GetMessageResults(sendid)

        Dim bounces As Integer = stat.Bounces 'total number of bounces for the message

        Dim clickc As Integer = stat.Clicks 'total number of clicks on the message

        Dim clicksUnique As Integer = stat.ClicksUnique 'the unique clicks on the message

        Dim opens As Integer = stat.Opens 'total number of times the message has been opened

        Dim opensUnique As Integer = stat.OpensUnique 'the unique number the message was opened

        Dim sent As Integer = stat.Sent 'to how many recipients the message has been sent




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.