JSPM

netgsm

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 83
  • Score
    100M100P100Q90855F
  • License MIT

NetGsm api client

Package Exports

  • netgsm

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 (netgsm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.

GitHub issues GitHub license npm version

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);
})();

Changelog

See changelog for details