Node.js Module for the SMSified API
A Node.js module for interaction with the SMSified API.
SMSified API Overview
SMSified is a simple REST SMS API, built to uniquely enable developers to create powerful SMS services with minimum effort. Through SMSified, developers can both send and receive SMS messages, as well as track usage and message history through a powerful reporting dashboard. You can use either standard phone numbers or short codes, and best of all, SMSified is backed by Voxeo - the world's largest real-time application cloud.
When you sign up, you automatically receive $20 in credit and one free phone number; this allows you to both receive and send free SMS messages while testing. When the credit runs out, just add a credit card for billing and you're live - but you get to keep the phone number for free! Check out our pricing page for more information.
More info here: SMSified API Docs
Installation
npm install smsified
Usage Examples
The following simple example will send an outbound SMS message from (407) 554-1234 to (518) 476-1234 and write out the JSON response from SMSified to the console:
var sys = ;var smsified = ; var sms = 'username' 'password';var options = senderAddress: '4075541234' address: '15184761234' message: 'Hello world from Node.js';sms;
Send an outbound SMS message and set a callback URL:
var sms = 'username' 'password';var options = senderAddress: '4075541234' address: '15184761234' message: 'Hello from Node.js with another callback' notifyURL: 'http://path-to-somewhere/';sms;
Process an inbound SMS message:
var sys = ;var http = ;var smsified = ;var port = 8000 || processARGS1; // Create a new HTTP server to listen for incoming messages.var server = http;sys;
Check the status of an SMS message:
var sms = 'username' 'password';sms;
Create a subscription for an account phone number:
var sms = 'username' 'password';sms;
View all active subscriptions:
var sms = 'username' 'password';sms;
Delete a subscription:
var sms = 'username' 'password';sms;
Retrieve delivery information on a message:
var sms = 'username' 'password';sms;
Retrieve delivery information on a set of messages, using filters to specify messages:
var sms = 'username' 'password';sms;