cmc-voice-otp
Version:
CMC voice otp library
37 lines (27 loc) • 474 B
Markdown
# Send CMC Voice OTP
### Basic use
```js
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
```bash
cp test/sandbox.tmp.ts test/sandbox.ts
```
Update sandbox.ts follow by contract
```bash
npm run test
```