cmc-voice-otp
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

Send CMC Voice OTP

Basic use

const client = new CMCVoiceOTPClient(
    baseURL,
    appId,
    appSecret,
    encryptedKey,
    iv,
    fromPhoneNumber
);

const res = await client.createVoiceOTP({
    otp: '123456',
    to: '0975096810',
});

Features

  • [x] Send Voice OTP
  • [x] Get detail of OTP by id

Development and testing

cp test/sandbox.tmp.ts test/sandbox.ts

Update sandbox.ts follow by contract

npm run test

Package Sidebar

Install

npm i cmc-voice-otp

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

14.7 kB

Total Files

9

Last publish

Collaborators

  • trucdev