{"id":732,"date":"2017-04-21T08:12:09","date_gmt":"2017-04-21T08:12:09","guid":{"rendered":"http:\/\/developer.suresms.com\/?page_id=732"},"modified":"2025-01-09T13:38:02","modified_gmt":"2025-01-09T13:38:02","slug":"https-get-received-message","status":"publish","type":"page","link":"https:\/\/developer.suresms.com\/https\/https-get-received-message\/","title":{"rendered":"HTTP(s) &#8211; Get Received Message"},"content":{"rendered":"\n\n\t<p>With the HTTP(s) API it is possible to get a collection of received messages. You need to use a time-interval and will receive a complete list of received messages in this timespan.<\/p>\n<p>Call<em><strong> https:\/\/api.suresms.com\/script\/v2\/GetReceivedMessage.aspx<\/strong><\/em> with the following parameters:<\/p>\n<p><strong>Login, password and startutcdatetime and endutcdatetime<\/strong><\/p>\n<table>\n<tbody>\n<tr>\n<td>Login<\/td>\n<td>Your\u00a0SureSMS account login<\/td>\n<td>Mandatory<\/td>\n<\/tr>\n<tr>\n<td>Password<\/td>\n<td>\u00a0Your SureSMS account password<\/td>\n<td>Mandatory<\/td>\n<\/tr>\n<tr>\n<td>StartUtcDateTime<\/td>\n<td>From this time (in UTC), we will query all incomming messages.<\/td>\n<td>Mandatory<\/td>\n<\/tr>\n<tr>\n<td>EndUtcDateTime<\/td>\n<td>You can use this value to set an endtime, or leave it without as we will use &#8220;now&#8221; as endtime.<\/td>\n<td>Optional<\/td>\n<\/tr>\n<tr>\n<td>jsonReponse<\/td>\n<td>By default you get the response in XML, but if you add parameter jsonResponse=1 to the query the response will be returned in JSON<\/td>\n<td>Optional<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Note: The parameters are NOT case senstive.<\/p>\n<p>Example :<\/p>\n<p>If your SureSMS account is &#8220;XXX&#8221; and your code is 8r7e3.<\/p>\n<p>If you want to know the status of a message with id 435345, you must\u00a0write this in your browser:<\/p>\nhttps:\/\/api.suresms.com\/script\/v2\/GetReceivedMessage.aspx?login=XXX&#038;password=8r7e3&#038;startutcdatetime=2017-01-01T00:00:00\n<p>If you want to know all new messages from say 01th of January 2021:<\/p>\nhttps:\/\/api.suresms.com\/script\/v2\/GetStatus.aspx?login=XXX&#038;password=8r7e3&#038;startutcdatetime=2021-01-01T00:00:00\n<h3>Result<\/h3>\n<p>No matter if you use the first or last option, the result will be returned in this format: <a href=\"https:\/\/developer.suresms.com\/soap-restful\/soap-restful-definition\/soap-restful-definition-messagestatus\/\">Message<\/a> (unless you use the jsonResponse=1 parameter)<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>With the HTTP(s) API it is possible to get a collection of received messages. You need to use a time-interval and will receive a complete list of received messages in this timespan. Call https:\/\/api.suresms.com\/script\/v2\/GetReceivedMessage.aspx with the following parameters: Login, password and startutcdatetime and endutcdatetime Login Your\u00a0SureSMS account login Mandatory Password \u00a0Your SureSMS account password Mandatory&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":9,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-732","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/comments?post=732"}],"version-history":[{"count":7,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/732\/revisions"}],"predecessor-version":[{"id":1016,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/732\/revisions\/1016"}],"up":[{"embeddable":true,"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/pages\/9"}],"wp:attachment":[{"href":"https:\/\/developer.suresms.com\/wp-json\/wp\/v2\/media?parent=732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}