fratzinger / feathers-messagebird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feathers-messagebird

A feathers.js service adapter for messagebird.

npm libraries.io npm GitHub license

Installation

npm i feathers-messagebird

Also see:

Supported features

Todo (contributions welcome)

Usage

const { MessageBirdSmsService } = require("feathers-messagebird");

app.use("/sms", new MessageBirdSmsService({
  accessKey: "YOUR_ACCESS_KEY" // get your accessKey: https://dashboard.messagebird.com/en/developers/access
}))

app.service("sms").create({
  originator : '31970XXXXXXX',
  recipients : [ '31970YYYYYYY' ],
  body : 'Hello World, I am a text message and I was hatched by Javascript code!'
})

Testing

Simply run npm test and all your tests in the test/ directory will be run. It has full support for Visual Studio Code. You can use the debugger to set breakpoints.

License

Licensed under the MIT license.

About

License:MIT License


Languages

Language:TypeScript 96.5%Language:JavaScript 3.5%