{"id":297,"date":"2010-02-24T11:54:26","date_gmt":"2010-02-24T17:54:26","guid":{"rendered":"http:\/\/dmartenson.dc.multitech.prv\/developer\/?page_id=297"},"modified":"2010-04-01T13:07:51","modified_gmt":"2010-04-01T18:07:51","slug":"isms-receive-api","status":"publish","type":"page","link":"https:\/\/www.multitech.net\/developer\/software\/isms\/isms-receive-api\/","title":{"rendered":"iSMS Receive API"},"content":{"rendered":"<p>HTTP Receive API \u2013 Non-Polling Mode<\/p>\n<p>When the protocol is HTTP, the &#8220;Receive API request&#8221; is an HTTP POST packet.<br \/>\nPOST Packet Format with Authentication<br \/>\nPOST \/cgi-bin\/postquery.cgi HTTP\/1.1<br \/>\nHOST: 192.168.2.2:80<br \/>\nUser-Agent: MultiModem iSMS\/1.40<br \/>\nAccept: text\/xml, application\/xml,<br \/>\napplication\/xhtml+xml,text\/html;q=0.9,text\/plain;q=0.8,<br \/>\napplication\/msword, application\/vnd.ms-powerpoint, image\/png, *\/*<br \/>\nAccept-Language: en-us; en;q=0.50<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Charset: ISO-8859-1, utf-8;q=0.7, *;q=0.7<br \/>\nKeep-Alive: 300<br \/>\nConnection: keep-alive<br \/>\nContent-Type: application\/x-www-form-urlencoded<br \/>\nContent-Length: 395<br \/>\nusername=SMSFINDER&amp;password=SMSFINDER&amp;XMLDATA=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-1%22%3F%3E%0D%0A%3CMessageNotification%3E%0D%0A%3CModemNumber%3E%2B2%3A19525945<br \/>\n092%3C%2FModemNumber%3E%0D%0A%3CSenderNumber%3E%2B919844895692%3C%2FSenderNum<br \/>\nber%3E%0D%0A%3CDate%3E08%2F03%2F14%3C%2FDate%3E%0D%0A%3CTime%3E12%3A53%3A09%3C<br \/>\n%2FTime%3E%0D%0A%3CMessage%3ETest%0D%0A%0D%3C%2FMessage%3E%0D%0A%3C%2FMessage<br \/>\nNotification%3E%0D%0A<br \/>\nAppendix A \u2013 Application Programming Interface (API)<br \/>\nMulti-Tech Systems, Inc. MultiModem\u00ae iSMS User Guide for Administrators 91<br \/>\nPOST Packet Format without Authentication<br \/>\nPOST \/cgi-bin\/postquery.cgi HTTP\/1.1<br \/>\nHOST: 192.168.2.2:80<br \/>\nUser-Agent: MultiModem iSMS\/1.40<br \/>\nAccept: text\/xml, application\/xml,<br \/>\napplication\/xhtml+xml,text\/html;q=0.9,text\/plain;q=0.8,<br \/>\napplication\/msword, application\/vnd.ms-powerpoint, image\/png, *\/*<br \/>\nAccept-Language: en-us; en;q=0.50<br \/>\nAccept-Encoding: gzip, deflate<br \/>\nAccept-Charset: ISO-8859-1, utf-8;q=0.7, *;q=0.7<br \/>\nKeep-Alive: 300<br \/>\nConnection: keep-alive<br \/>\nContent-Type: application\/x-www-form-urlencoded<br \/>\nContent-Length: 346<br \/>\nXMLDATA=%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22ISO-8859-<br \/>\n1%22%3F%3E%0D%0A%3CMessageNotification%3E%0D%0A%3CModemNumber%3E%2B2%3A19525945<br \/>\n092%3C%2FModemNumber%3E%0D%0A%3CSenderNumber%3E%2B919844895692%3C%2FSenderNum<br \/>\nber%3E%0D%0A%3CDate%3E08%2F03%2F14%3C%2FDate%3E%0D%0A%3CTime%3E12%3A55%3A54%3C<br \/>\n%2FTime%3E%0D%0A%3CMessage%3ETest%0D%0A%0D%3C%2FMessage%3E%0D%0A%3C%2FMessage<br \/>\nNotification%3E%0D%0A<br \/>\nNote:<br \/>\nIf authentication is disabled, POST DATA contains XMLDATA=[urlencoded(XML)]<br \/>\nIf authentication is enabled, POST DATA contains username=user&amp;passwd=user&amp;<br \/>\nXMLDATA=[urlencoded(XML)]<br \/>\nThe server authenticates the message from MultiModem iSMS using the username\/password XML data:<br \/>\n&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&gt;\\r\\n<br \/>\n&lt;MessageNotification&gt;\\r\\n<br \/>\n&lt;ModemNumber&gt;2:19525945092&lt;\/ModemNumber&gt;\\r\\n<br \/>\n&lt;SenderNumber&gt;6754535645&lt;\/SenderNumber&gt;\\r\\n<br \/>\n&lt;Date&gt;08\/03\/10&lt;\/Date&gt;\\r\\n<br \/>\n&lt;Time&gt;09:05:30&lt;\/Time&gt;\\r\\n<br \/>\n&lt;Message&gt;Here is a test message&lt;\/Message&gt;\\r\\n<br \/>\n&lt;\/MessageNotification&gt;\\r\\n<br \/>\n-or-<br \/>\n&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;ISO-8859-1&#8243;?&gt;\\r\\n<br \/>\n&lt;MessageNotification&gt;\\r\\n<br \/>\n&lt;ModemNumber&gt;2:19525945092&lt;\/ModemNumber&gt;\\r\\n<br \/>\n&lt;SenderNumber&gt;8767654534&lt;\/SenderNumber&gt;\\r\\n<br \/>\n&lt;Date&gt;08\/03\/07&lt;\/Date&gt;\\r\\n<br \/>\n&lt;Time&gt;08:07:20&lt;\/Time&gt;\\r\\n<br \/>\n&lt;Message&gt;Test message 1&lt;\/Message&gt;\\r\\n<br \/>\n&lt;\/MessageNotification&gt;\\r\\n<br \/>\n&lt;MessageNotification&gt;\\r\\n<br \/>\n&lt;ModemNumber&gt;3:&lt;\/ModemNumber&gt;\\r\\n<br \/>\n&lt;SenderNumber&gt;9876754534&lt;\/SenderNumber&gt;\\r\\n<br \/>\n&lt;Date&gt;08\/03\/13&lt;\/Date&gt;\\r\\n<br \/>\n&lt;Time&gt;10:10:36&lt;\/Time&gt;\\r\\n<br \/>\n&lt;Message&gt;Test message 2&lt;\/Message&gt;\\r\\n<br \/>\n&lt;\/MessageNotification&gt;\\r\\n<\/p>\n<p>Notes:<br \/>\n\u2022 The MultiModem iSMS accommodates two messages at the maximum in one POST<br \/>\nmessage.<br \/>\n\u2022 The MultiModem iSMS waits for an OK response from the HTTP server; it will timeout in<br \/>\n30 seconds.<br \/>\n\u2022 If receiving modem\u2019s SIM number is configured then &lt;ModemNumber&gt; field has modem<br \/>\nindex:SIM number. If receiving modem\u2019s SIM number is not configured then<br \/>\n&lt;ModemNumber&gt; field has modem index:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>HTTP Receive API \u2013 Non-Polling Mode When the protocol is HTTP, the &#8220;Receive API request&#8221; is an HTTP POST packet. POST Packet Format with Authentication POST \/cgi-bin\/postquery.cgi HTTP\/1.1 HOST: 192.168.2.2:80 User-Agent: MultiModem iSMS\/1.40 Accept: text\/xml, application\/xml, application\/xhtml+xml,text\/html;q=0.9,text\/plain;q=0.8, application\/msword, application\/vnd.ms-powerpoint, image\/png, *\/* Accept-Language: en-us; en;q=0.50 Accept-Encoding: gzip, deflate Accept-Charset: ISO-8859-1, utf-8;q=0.7, *;q=0.7 Keep-Alive: 300 Connection: keep-alive [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":88,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-297","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":6,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/297\/revisions"}],"predecessor-version":[{"id":586,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/297\/revisions\/586"}],"up":[{"embeddable":true,"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/pages\/88"}],"wp:attachment":[{"href":"https:\/\/www.multitech.net\/developer\/wp-json\/wp\/v2\/media?parent=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}