Skip to content

turkeysms/nodejs

Repository files navigation

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 support@turkeysms.com.tr.

📄 License

The MIT License (MIT). Please see License File for more information.


© 2026 TurkeySMS Bilişim ve İletişim Hizmetleri Tic. Ltd. Şti.

About

Official TurkeySMS Node.js Library — High-performance, asynchronous SMS & OTP integration for modern JavaScript server environments and high-traffic APIs.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors