Receive SMS with Visual Basic
Receive Interface
IInboxService2 interface
Contains functions and methods that enable you to work with your Esendex Inbox.
Implemented by Inbox2 class
Dim service as new EsendexLib.InboxService2
Initialise method
Initialise the class with your Esendex credentials. You must call this method before you call any other on the interface.
Sub Initialise(Username As String, Password As String, Account As String, [IsServerSide])
Parameters
- Username Your Esendex username.
- Password Your Esendex password.
- Account Your Esendex Account Reference.
- IsServerSide (optional) True if the component is running within an ASP page; false or otherwise. The default is false.
GetMessages function
Retrieves Messages from your Esendex Inbox.
Function GetMessages() As ObjectCollection
Return Value: A collection of Messages contained in your Esendex Inbox.
GetMessageByID function
Retrieves a Message from your Esendex Inbox.
Function GetMessageByID(MessageID as String) As SMSMessage2
Parameters
- MessageID The Id of the Message you want to retrieve.
Return Value: A message from your Esendex Inbox.
GetMessagesForDay function
Retrieves Messages from your Esendex Inbox for a given day.
Function GetMessagesForDay(Year as Long, Month as Long, Day as Long) As ObjectCollection
Parameters
- Year, Month, Day The year, month and day of the Messages to retrieve.
Return Value: A collection of Messages contained in your Esendex Inbox.
GetMessagesForDateRange function
Retrieves Messages from your Esendex Inbox for a given date range.
Function GetMessagesForDateRange(StartDate as Date, EndDate as Date) As ObjectCollection
Parameters
- StartDate The inclusive date of the earliest Message to retrieve.
- EndDate The inclusive date of the latest Message to retrieve.
Return Value: A collection of Messages contained in your Esendex Inbox.
GetMessagesByID function
Retrieves Messages from your Esendex Inbox.
Function GetMessagesByID(MessageIDs as String) As ObjectCollection
Parameters
- MessageIDs A comma-separated list containing the Ids of the Messages you want to retrieve.
Return Value: A collection of Messages contained in your Esendex Inbox.
DeleteMessage method
Deletes a Message from your Esendex Inbox.
Sub DeleteMessage(MessageID as String)
Parameters
- Message The Id of the Message you want to delete.
DeleteMessages method
Deletes multiple Messages from your Esendex Inbox.
Sub DeleteMessages(MessageIDs as String)
Parameters
- Messages A comma-separated list containing the Ids of the Messages you want to delete.