netgsm
v1.1.0
Published
NetGsm api client
Downloads
218
Readme
NetGsm REST API - JavaScript Library
New JavaScript library for NetGsm REST API, supports CommonJS (CJS).
Requests are made with Axios library with support to promises.
Installation
npm install --save netgsm
Getting started
Check out the NetGsm API endpoints and data that can be manipulated in https://www.netgsm.com.tr/dokuman/.
Setup
CJS example:
const NetGsm = require("netgsm");
(async () => {
const netgsm = new NetGsm({
usercode: "8503021190",
password: "1HYNES4",
msgheader: "MARKAADI",
});
const response = await netgsm.get("sms/send/get/", {
gsmno: "5554443322",
message: "Test",
});
console.log(response);
})();