1.1.1 • Published 5 years ago

msg91-flow v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

msg91-flow

This is used to handle msg91 apis such as create flow, get flow, update flow and send sms by flow.

How to implement

Install node module package in your project

npm install msg91-flow --save

use the below code snippet for initialize class

const flowService = require('msg91-sdk').flowService;
const flow = new flowService("AUTH_KEY");

now you can use any of flow method after initialize class

Get Flow by flow id

flow.getFlow(flowId).then(() => {
//Handle success result
}).catch(() => {
//Handle failure result
})

add flow

flow.addFlow(postData).then(() => {
//Handle success result
}).catch(() => {
//Handle failure result
})

Update Flow

flow.updateFlow(flowId, updateData).then(() => {
//Handle success result
}).catch(() => {
//Handle failure result
})

Send SMS Through Flow

Sending sms with flow

for data check doc

const sendSmsFlowService = require('msg91-sdk').sendSmsFlowService;
const sendSms = new sendSmsService("AUTH_KEY").sendSmsFlowService;

sendSms.sendSmsViaFlow(data).then(() => {
//Handle success result
}).catch(() => {
//Handle failure result
})

License

MIT License

Copyright (c) 2020 Mohit Sharma

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1.1.1

5 years ago

1.1.0

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago