Yoola SMS Node.js SDK
=====================
Node 18 or newer. No dependencies.

Copy yoolasms.js into your project, then:

    const { YoolaSMS } = require('./yoolasms');
    const yoola = new YoolaSMS('YOUR_API_KEY');   // key from your dashboard > API Key

    const r = await yoola.send('256772123456', 'Your code is 482913');
    console.log(r.status, r.balance);

    await yoola.send(['256772123456', '256712345678'], 'Hello everyone', 'YOURSENDER');
    await yoola.send('256772123456', 'Test', 'YoolaSMS', true);   // sandbox: checks only, nothing sent or charged
    await yoola.balance();
    await yoola.deliveryReport(12345);
    await yoola.schedule('256772123456', 'Reminder', '2026-12-01 09:00:00');
    await yoola.verifySend('256772123456', { brand_name: 'MyApp' });
    await yoola.verifyCheck(requestId, '12345');

Errors such as insufficient credits come back as normal JSON: check r.status and r.code.
Keep your API key on the server. Never put it in browser code.
Help: support@yoolasms.com | WhatsApp +256 704 487 563 | https://yoolasms.com/api-integration
