SDK for the SMSGlobal REST API (version 1.2.5) allowing Node.js applications to send SMS, manage outgoing/incoming messages, and handle OTP verification. The library requires API credentials (key and secret) and returns promises or supports callbacks. It is designed for Node.js >=9 and is actively maintained with weekly releases. Compared to generic HTTP clients, it provides a higher-level abstraction with built-in OTP support and automatic promise wrapping.
npm install smsglobalNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates installing, initializing the client with credentials, sending an SMS, and sending an OTP with both callback and promise patterns.
Always invoke the default export with apiKey and apiSecret: const client = require('smsglobal')(apiKey, secret);Ensure your message string contains '{*code*}' exactly.Either provide a callback or handle the returned promise.
Upgrade Node to >=9 or pin to an older version of the package.
Use const client = require('smsglobal')(apiKey, apiSecret);Add '{*code*}' to the message string.Invoke the factory: const client = require('smsglobal')(apiKey, secret); then use client.sms.send.No dependency data recorded yet.