sigma_sms
v0.0.6
Published
<p align="center"><b>🛠️ This repository was created using the <a href="https://gitupload.com">GitUpload</a>.</b></p> <p align="center"><a href="https://sigmasms.com"><img src="https://github.com/markolofsen/sigma_sms//blob/master/.banners/banner_en.jpg?
Downloads
8
Maintainers
Readme
Version = 0.0.6 Library name = sigma_sms Title = Sigma SMS API gate Keywords = API, Gate, SMS, SMS Gate, Sigma, Phone, Node, React JS, React Native, Vue, Angular, Javascript
Hot to install
yarn add sigma_sms
How to use
const SIGMA = require('sigma_sms');
const username = '****'
const password = '****'
const sender_name = 'B-Media'
new SIGMA(username, password).send(sender_name, 'What about 11?', ['+346400000',]).then(res => {
console.log('send() :: RESPONSE')
console.log(res.data)
const {id} = res.data
if(id) {
new SIGMA(username, password).status(id).then(res => {
console.log('status() :: RESPONSE')
console.log(res.data)
})
}
}).catch(err => {
const msg_err = `API Error :: response status ${err.response.status}`
console.log(msg_err)
return msg_err
})