0.1.1 • Published 1 year ago
cmc-voice-otp v0.1.1
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