Official ClickSend v3 REST API SDK for Node.js (v5.1.7). Provides programmatic access to ClickSend SMS, email, voice, and fax services with built-in TypeScript definitions. Released regularly, this SDK requires Node.js v12+ and uses basic authentication. It is the primary integration method for ClickSend services, offering a straightforward promise-based API. Key differentiators include full coverage of ClickSend REST API endpoints, TypeScript support, and simple installation via npm.
npm install clicksendNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates sending an SMS via ClickSend using ESM imports, environment variables for credentials, and promise handling.
Set smsApi.authentications.BasicAuth.username and smsApi.authentications.BasicAuth.password with your ClickSend username and API key.
Ensure phone numbers start with '+' followed by country code and number.
Use CommonJS require() or enable esModuleInterop in tsconfig.json.
Always attach .catch() or use async/await with try-catch.
Update to the latest SDK and set authentications.BasicAuth.username and password.
Ensure you create a new SMSApi instance before accessing authentications: const smsApi = new SMSApi(); then smsApi.authentications.BasicAuth.username = ...;
Verify your username and API key in the ClickSend dashboard and set them correctly on the BasicAuth object.
Use const ClickSend = require('clicksend'); at the top of your file.No dependency data recorded yet.