flowroute-sms-api
npm i flowroute-sms-api

flowroute-sms-api

Simple API for communicating with the Flowroute SMS service.

by FredLackey

0.0.1 (see all)License:Apache-2.0TypeScript:Not FoundCategories:Vanilla JavaScript SMS API
npm i flowroute-sms-api
Readme

Flowroute SMS API

Simple API for communicating with the Flowroute SMS API.

Other Projects

This project is only part of the entire Flowroute API. Other projects are:

ProjectDescription
flowroute-sms-apiSMS Messaging
flowroute-mms-apiMMS Messaging
flowroute-messaging-apiSMS & MMS Messaging

Installation

npm i --save flowroute-sms-api

Example Usage

const sms = require('flowroute-sms-api');
const params = require('./params.json');

const { from, to, body, callbackUrl, accessKey, secretKey } = params;

let id = '';
if (callbackUrl) {
  sms.send.withCallback(from, to, body, callbackUrl, accessKey, secretKey, (err, info) => {
    if (err) { throw err; }
    id = info.id;
  });
} else {
    sms.send.withoutCallback(from, to, body, accessKey, secretKey, (err, info) => {
    if (err) { throw err; }
    id = info.id;
  });
}

console.log(`Message ID: ${id}`);

Author Info

This project has been created for my personal use. It is maintained. Feel free to use it at your leisure. If you need help, either open an issue or get in touch directly:

Fred Lackey
fred.lackey@gmail.com
www.fredlackey.com

Downloads/wk

3

GitHub Stars

0

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
0.0.1
latest
4yrs ago
No tutorials found
Add a tutorial