-
Notifications
You must be signed in to change notification settings - Fork 4
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:
- Select for rows of inbox table where dst like '3333.%' and mt=0. This will give us new messages.
Then for each message:
- 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.
- Then we move row from inbox to archive. This will exclude this message from processing in next iteration.
See examples in php and ruby: