Backbone is the Zentext API. This API will allow web apps to send messages over text or email. Future versions will allow video conferencing.
You can send a message by calling zentext.send(a, b, c);
.
a is the content (in HTML or Text form).
b is the address to send to.
c is the type of message you are sending. Accepted types are email and mobile.
Note: Not all messaging methods support HTML, on those that do not, Zentext will automatically convert it to Plain Text.
You can get an operation's results by doing foo = zentext.results(a);
.
a tells Zentext how to format the result list. Current values are plain, array and html.
Note: If you do not specify a format, Zentext will return results in a Plain Text format.
You can find out what kind of address a user has entered by doing foo = Zentext.checkType();
.
Zentext will return the string 'mobile' if it is a telephone number or 'email' if it is an email.
These are the required steps to test out the app:
for the email functionality: