trailpack-sinch
version 0.1.0
Sinch Trailpack for sending SMS
Install
With yo:
$ yo trails:trailpack trailpack-sinch
With npm:
$ npm install --save trailpack-sinch
Configure
// config/main.jsmoduleexports = packs: // ... other trailpacks
Add configuration for sinch :
// config/sinch.jsmoduleexports = /** * The "account Key" associated with your Sinch account. */ Key: null /** * The "account secret" associated with your Sinch account. */ Secret: null
Usage
Use the SinchService
like this (from controllers/policies/services) :
//Send basic SMSthisappservicesSinchService //Send messageid set statusthisappservicesSinchService
Sinch Account
The use of this requires setting up a sinch sms account (https://www.sinch.com/)
Credits
This trailpack is inspired by Jaumard's trailpack-twilio
We love contributions! Please check out our Contributor's Guide for more information on how our projects are organized and how to get started.