mekongsms
v0.0.5
Published
MekongSMS client
Downloads
16
Readme
MekongSMS Node.js Client (Unofficial)
This implementation is based on MekongSMS API version 2.1.
Install
npm install mekongsms
Usage
Initialize MekongSMS client.
const client = new MekongSMS({
endpoint: "https://sandbox.mekongsms.com",
username: "example@example.com",
password: "example",
});
Send SMS
Send an SMS to one or multitple phone numbers.
await client.send({
international: false,
phoneNumbers: ["85512345678", "85512345679", "85512345688"],
text: "Hello, world",
customData: "user_01",
sender: "Example",
statusCallback: "https://example.com/callback"
});
Check Credits
Check available credit associated with the account.
const value = await client.credits();
// => { "credit": 1234 }
License
MIT