0.1.2 • Published 4 years ago

zenziva v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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.

// import zenziva from 'zenziva'

const zenziva = require('zenziva').default

const z = zenziva('userkey', 'passkey')

// SMS
z.sms('0812223333', 'Halo')

// WhatsApp
z.wa('6285551111', 'Halo')

// Voice Message
z.voice('0812223333', 'Halo')
// SMS Masking
const z = zenziva('userkey', 'passkey', {
  masking: true,
})

z.sms('0812223333', 'Halo')
// Zenziva Sms Center
const z = zenziva('userkey', 'passkey', {
  domain: 'domain_name.com',
})

z.sms('0812223333', 'Halo')
// Zenziva WhatsApp Center
const z = zenziva('userkey', 'passkey', {
  domain: 'domain_name.com',
  whatsappId: '0987654321',
})

z.wa('6285551111', 'Halo')
0.2.0

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago