turkeysms-node
v4.0.0
Published
Official TurkeySMS API V4 Node.js Library — High-performance, asynchronous SMS & OTP integration for modern JavaScript server environments and high-traffic APIs.
Maintainers
Readme
TurkeySMS Node.js SDK (Official) 🟢
Official TurkeySMS Node.js Library — High-performance, asynchronous SMS & OTP integration for modern JavaScript server environments and high-traffic APIs.
🛠 Installation
Install via npm:
npm install turkeysms-node🚀 Quick Start
Initialize Client
const TurkeySmsClient = require('turkeysms-node');
const client = new TurkeySmsClient('your_api_key_here');Sending Standard SMS
async function send() {
try {
const response = await client.sendSms('SENDER', '905xxxxxxxxx', 'Hello from Node.js!');
console.log(response);
} catch (error) {
console.error(error);
}
}
send();Sending OTP SMS
const response = await client.sendOtp('905xxxxxxxxx', 1, 4);Advanced OTP (Custom Text)
const response = await client.sendDetailedOtp('SENDER', '905xxxxxxxxx', 'Code: TS-CODE', 1);Check Balance
const balance = await client.getBalance();
console.log(`Balance: ${balance.balance}`);🛡 Security
For security issues, please contact [email protected].
📄 License
The MIT License (MIT). Please see License File for more information.
© 2026 TurkeySMS Bilişim ve İletişim Hizmetleri Tic. Ltd. Şti.
