How to query message lists from a message folder in Ozeki NG SMS Gateway

This example demonstrates how you can query messages from a message folder in Ozeki NG SMS Gateway. With this solution you can query all the messages from a given message folder (it can be: "Addressbook", "deleted", "deliveryreport", "inbox", "notsent", "outbox", "sent", "unknown", "unprocessed").

Type this address into your browser:

      http://127.0.0.1:9501/api?action=getmessagelist&username=admin&password=abc123&listName=sent
      

Provide the follows:

"action": "getmessagelist"
"username": your username used to log into Ozeki NG SMS Gateway
"password": your password in Ozeki NG SMS Gateway
"listName": specify the folder you wish to query (it can be: "Addressbook", "deleted", "deliveryreport", "inbox", "notsent", "outbox", "sent", "unknown", "unprocessed")

The response:

<Envelope>
          <ID>93e36b10-1fce-4648-a059-dbf67ddb66a6</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000000</Receiver>
          <Message>Test000000</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>85fbb591-c7d2-446c-842d-543984da7ad9</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000002</Receiver>
          <Message>Test000002</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>c6c79208-10b1-4a15-b0db-7dd186507ef3</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000003</Receiver>
          <Message>Test000003</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>6d0bfe74-cc69-4a12-9396-ca3cf6618c3f</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000004</Receiver>
          <Message>Test000004</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>8063eae0-83fd-4faa-9957-d810f7610f01</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000005</Receiver>
          <Message>Test000005</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>a629a5f5-ada5-4251-acd9-408a8062dee5</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000006</Receiver>
          <Message>Test000006</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>c21ba180-912a-47fa-9a51-0a81ae88af4d</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sende>
          <Receiver>+3600000007</Receiver>
          <Message>Test000007</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>ee3a93cb-801d-40c2-8a75-21ca2ee8b3d5</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000009</Receiver>
          <Message>Test000009</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>4e61f8d6-b259-4acc-8a6f-97c2ddeaf86b</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000010</Receiver>
          <Message>Test000010</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>d00d3629-85e2-4be9-9813-b67a4ac92585</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receive>+3600000011</Receiver>
          <Message>Test000011</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>3c99072e-a403-443d-81f5-a50cd2346497</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000012</Receiver>
          <Message>Test000012</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>f11f4d1a-55b5-4f2a-9a7a-ee877fa9fe63</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000013</Receiver>
          <Message>Test000013</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>
<Envelope>
          <ID>6ad216dd-fca4-475a-80b6-16a40329998e</ID>
          <Type>SMS:TEXT</Type>
          <Sender>admin</Sender>
          <Receiver>+3600000015</Receiver>
          <Message>Test000015</Message>
          <SentTime>2010-03-01 16:02:06</SentTime>
          <ReceivedTime>2010-03-01 16:02:06</ReceivedTime>
</Envelope>

More information