EnvioSMS connector for the LoopBack framework.
I needed an easy way to send SMS using EnvioSMS so I decided to build this connector.
If you want to know how to get started with Loopback [check this][5].
To add a new data source, use the data source generator:
lb datasource
Then the data source generator will prompt some questions like
- Enter the data-source name: Firestore (Choose your prefered name)
- Select the connector for Firestore: other
- Enter the connector's module name loopback-connector-enviossms
- Install loopback-connector-enviossms (Y/n) y
You should fill the application's datasource file which is located in /server/datasources.json
with those details, You can find details in :
"enviossms": {
"name": "enviosms",
"username": "",
"password": "",
"baseURL": ""
}
Property | Type | Description | --- |
---|---|---|---|
projectId | String | project_id in the JSON file | --- |
clientEmail | String | client_email in the JSON file | --- |
privateKey | String | private_key in the JSON file | --- |
databaseName | String | Firebase's project id | Optional, Default: projectId |
And you can actually store those private details as an Environment variables, Check [source-configuration][8]
I've got inspired by the Official [MongoDB connector][3] by Loopback
Copylefted (c) 2017 [Cristian Bullokles][1] Licensed under the [MIT license][2].