0.0.6 • Published 5 years ago
sigma_sms v0.0.6
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
})