Socket
Socket
Sign inDemoInstall

flowroute-messaging-api

Package Overview
Dependencies
101
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    flowroute-messaging-api

Simple API for communicating with the Flowroute Messaging service (both SMS & MMS).


Version published
Weekly downloads
0
Maintainers
1
Install size
9.38 MB
Created
Weekly downloads
 

Readme

Source

Flowroute Messaging API

Simple API for communicating with the Flowroute Messaging service (both SMS & MMS).

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-messaging-api

Variables

NameData Type / FormatRequiredDescription
fromString('nnnnnnnnnnn')YESSender DID in E.164 format
toString('nnnnnnnnnnn')YESRecipient DID in E.164 format
bodyStringYES160 ASCII characters or 70 extended ASCII characters
links[String]NOArray of URLs to hosted media items
callbackUrlStringNOURL of server receiving ack messages
accessKeyString('n*')YESProvided by Flowroute API Preferencess page.
secretKeyStringYESProvided by Flowroute API Preferencess page.

Example

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

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

flowroute.send(to, from, body, links, callbackUrl, accessKey, secretKey, (err, info) => {
  if (err) { throw err; }
  console.log(JSON.stringify(info, null, 2));
})

Successful Response

{
  "id": "mdr2-32889a4a82e011e78f288637582574e3"
}

Optional Variables

Two optional variables exist for the send method:

VariablePurpose
linksArray of valid URLs pointing to hosted images, media files, or other attachments.
callbackUrlURL of a service endpoint listening for Flowroute's status callback.

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

Keywords

FAQs

Last updated on 23 Nov 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc