Socket
Socket
Sign inDemoInstall

loopback-my-sms-masking-connector

Package Overview
Dependencies
3
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    loopback-my-sms-masking-connector

loopback connector for mysmsmasking.com


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
333 kB
Created
Weekly downloads
 

Readme

Source

loopback-my-sms-masking-connector

SMSMasking connector for LoopBack

Installation

In your LoopBack project:

$ npm install --save loopback-my-sms-masking-connector

Using the Connector

To use the connector, define the datasource using the connector in your datasources.json file:

"SMSMasking": {
    "name": "SMSMasking",
    "connector": "loopback-my-sms-masking-connector",
    "url": "YOUR_SMSMasking_URL",
    "username": "YOUR_SMSMasking_USERNAME",
    "password": "YOUR_SMSMasking_PASSWORD"
}

Next, attach the created datasource to a model in the model-config.json file:

"SMSMasking": {
    "dataSource": "SMSMasking",
    "public": false
}

Now, using the created model, you can send an SMS or make a call using the send method of the model:

SMSMasking.send(options, callback);

Note: options is defined by the JSON objects in the next two sections:

Sending a SMS Payload

{
    to: 'Target Number',
    body: 'Text Massage'
}

Version

0.1.0

License

MIT

Keywords

FAQs

Last updated on 18 Oct 2017

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