Skip to content

Integration Example

nimf edited this page Jun 20, 2012 · 4 revisions

Let's assume we need a service that receives SMS to short number 3333 and replies back. We can use any language to perform these steps:

  1. Select for rows of inbox table where dst like '3333.%' and mt=0. This will give us new messages.

Then for each message:

  1. We creating a reply message by inserting record to outbox table, specifying '3333.0.1' as src and src field from inbox row as dst.
  2. Then we move row from inbox to archive. This will exclude this message from processing in next iteration.

See examples in php and ruby:

← DB model

Clone this wiki locally