cmc-voice-otp
v0.1.1
Published
CMC voice otp library
Downloads
19
Maintainers
Readme
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