0.1.1 • Published 1 year ago

cmc-voice-otp v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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

  • Send Voice OTP
  • 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
0.1.1

1 year ago

0.1.0

1 year ago