0.0.5 • Published 7 months ago

mekongsms v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

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

0.0.5

7 months ago

0.0.4

7 months ago

0.0.3

7 months ago

0.0.2

7 months ago

0.0.1

7 months ago