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

Queue Sending

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:  
The service enables you to view your sending queue.
The operation returns an array of MessageQueueData with the following fields:
  • Ai - the priority of the sending.
  • SendID - the send id of the message.
  • TimeToStartDistribution - the time starting the sending.
  • Confirmed - has the message been confirmed for sending?
  • Name - the name of the target group/query.
  • Subject - the message subject.
  • Id - the id of the sending.
  • Groupid - if the sending is to a group, this is the id of the group.
  • Queryid - if the sending is to a query, this is the id of the query.
  • MsgAttachFileName - if the message has an attachment, this is the file name.

Parameters:

  • No fields.

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);


//call the operation
inwise.ArrayOfMessageQueueData messages= inwiseWebServicesSoap.queueSending();
Iterator<MessageQueueData> it=messages.getMessageQueueData().iterator();
while(it.hasNext())
{
MessageQueueData mq =it.next();
float priority = mq.getAi();//the priority of the sending
boolean confirmed = mq.isConfirmed();//has the sending been confirmed
int groupid = mq.getGroupid();//if the sending is to a group, this is the group id
int queryId = mq.getQueryid();//if the sending is to a query, this is the query id
int id = mq.getId();//the id of the sending
String attachmentFileName = mq.getMsgAttachFileName();//if there is an attachment file, this is it's name
String name = mq.getName();//the name of the group/query the message is being sent to
int sendid = mq.getSendID();//the send id of the message being sent
String messageSubject = mq.getSubject();//the subject of the message being sent
XMLGregorianCalendar timeForStartSending = mq.getTimeToStartDistribution();//the time to start the sending
}

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

 

        //call the operation

        InwiseWebServices.MessageQueueData[] messages= ws.Queue_Sending();

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

        {

            InwiseWebServices.MessageQueueData mq = messages[i];

            float priority = mq.Ai;//the priority of the sending

            bool confirmed = mq.Confirmed;//has the sending been confirmed

            int groupid = mq.Groupid;//if the sending is to a group, this is the group id

            int queryId = mq.Queryid;//if the sending is to a query, this is the query id

            int id = mq.Id;//the id of the sending

            string attachmentFileName = mq.MsgAttachFileName;//if there is an attachment file, this is it's name

            string name = mq.Name;//the name of the group/query the message is being sent to

            int sendid = mq.SendID;//the send id of the message being sent

            string messageSubject = mq.Subject;//the subject of the message being sent

            DateTime timeForStartSending = mq.TimeToStartDistribution;//the time to start the sending

        }

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

 

        'call the operation

        Dim messages() As InwiseWebServices.MessageQueueData = ws.Queue_Sending()

        Dim i As Integer

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

            Dim mq As InwiseWebServices.MessageQueueData = messages(i)

            Dim priority As Single = mq.Ai 'the priority of the sending

            Dim confirmed As Boolean = mq.Confirmed 'has the sending been confirmed

            Dim groupid As Integer = mq.Groupid 'if the sending is to a group, this is the group id

            Dim queryId As Integer = mq.Queryid 'if the sending is to a query, this is the query id

            Dim id As Integer = mq.Id 'the id of the sending

            Dim attachmentFileName As String = mq.MsgAttachFileName 'if there is an attachment file, this is it's name

            Dim name As String = mq.Name 'the name of the group/query the message is being sent to

            Dim sendid As Integer = mq.SendID 'the send id of the message being sent

            Dim messageSubject As String = mq.Subject 'the subject of the message being sent

            Dim timeForStartSending As DateTime = mq.TimeToStartDistribution 'the time to start the sending

        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.