Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 651 Bytes

README.md

File metadata and controls

24 lines (19 loc) · 651 Bytes

dev-sms-interface

A simple mock SMS interface for testing SMS services

Setup

  1. Install node.js (http://nodejs.org)
  2. Install ionic framework npm install -g cordova ionic
  3. Start interface ionic serve

Customisation

The simplest way to use the dev-sms-interface for your own purposes is to implement a smsServer service. The service exposes a single interface sendSms : function(sms, responseCB) and should callback with a sms object

responseCB({
  sender : "Service",
  text : "This is a reply from the mock server",
  datetime : new Date().getTime()
})