Package Exports
- @gosmsge/gosmsge-node
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@gosmsge/gosmsge-node) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
GOSMS.GE Node JS SMS Send
Node JS client module to send SMS messages using GOSMS.GE SMS Gateway.
To use this library, you must have a valid account on https://gosms.ge.
Please note SMS messages sent with this library will be deducted by your GOSMS.GE account credits.
For any questions, please contact us at info@gosms.ge
Installation
$ npm install @gosmsge/gosmsge-node --saveSend a message with Classic type
const SMS = require('@gosmsge/gosmsge-node')
const sms = new SMS('api_key')
sms.send('995555555555', 'Hello!', 'GOSMS.GE')
.then(body => console.log(body)) // returns {"code": string,"message": string,"message_id": number,"balance": number,"user": string}
.catch(err => console.log(err.message))Check status of message
const SMS = require('@gosmsge/gosmsge-node')
const sms = new SMS('api_key')
sms.status('message_id')
.then(body => console.log(body)) // returns { id: number,sender: string,receiver: string,message: string',message_id: string,amount: number,status: string }
.catch(err => console.log(err.message))Check balance
const SMS = require('@gosmsge/gosmsge-node')
const sms = new SMS('api_key')
sms.balance()
.then(body => console.log(body)) // returns { balance: number, user: string }
.catch(err => console.log(err.message))More info
You can check out our website https://www.gosms.ge