Zenziva Client for JavaScript / TypeScript
Zenziva provide services
to send SMS, WhatsApp, and voice message.
This library written in TypeScript, and it should
working properly on Node.js.
If this library not working for you,
or you found any kind of bugs, please create a new issue.
Install
npm i zenziva
Usage
The .sms()
, .wa()
, .voice()
methods will return a Promise.
You can handle it with .then
or async
/await
.
const zenziva = require('zenziva').default
const z = zenziva('userkey', 'passkey')
z.sms('081234567', 'Halo')
z.wa('081234567', 'Halo')
z.voice('081234567', 'Halo')
const z = zenziva('userkey', 'passkey', {
masking: true,
})
const z = zenziva('userkey', 'passkey', {
domain: 'domain_name.com',
})