Receive API – Polling Mode
Receive API polling mode has two commands. The querycount? command and the recvmsg? command.
querycount?
The query count command is used to determine the number of unread SMS messages in the MultiModem
iSMS receive queue.
recvmsg?
The receive message command is used to retrieve the unread SMS messages from the receive queue.
Once a message is retrieved (read), it cannot be read again. A record of the SMS is kept in the SMS Services
Inbox.
Receive API Polling Mode Query Format
The format of the command can be as an HTTP/1.1 Get or in our product specific raw TCP protocol as
shown below.
/<command?><usercredentials><options><end-of-line>
GET /recvmsg?user=admin&passwd=admin[&count=][&from][&fdate=][&tdate=][&ftime=][&ttime=][&text=]
Query options are only used with the recvmsg? Command:
•
•
•
•
•
•
Multi-Tech Systems, Inc.
Downloaded from
Elcodis.com
electronic components distributor
All options given within [] indicate that they are optional
count – number of messages to be displayed
If filter is not given, it gives count of ALL unread messages
from – SMS from this mobile number
fdate, tdate – SMS received during this date period (from fdate; to tdate)
date format: yy/mm/dd
ftime, ttime – SMS received during this time period (from ftime; to ttime)
time format: hh:mm:ss
text – SMS received matching this text completely
MultiModem® iSMS User Guide for Administrators
Appendix A – Application Programming Interface (API)
100