Skip to content

Commit

Permalink
fix: lint format
Browse files Browse the repository at this point in the history
  • Loading branch information
jieey1140 committed Dec 4, 2023
1 parent cdd0074 commit e8c2b06
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions packages/nestjs-solapi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,19 +114,18 @@ import { SolapiService } from '@redredgroup/nestjs-solapi';
export class AppService {
constructor(private readonly solapiService: SolapiService) {}
async sendingCustomVerifySms() {
const sendVerifySmsResult =
await this.solapiService.CustomSolapi.SmsVerify.send({
config: {
verificationCodeLength: 10, //Code Length
verificationCodeType: 'ALPHABET_ONLY', // 'NUMBER_ONLY' | 'ALPHABET_ONLY' | 'MIX'
verificationMessage: 'Verification Code is: {{VERIFICATION_CODE}}', // Inject wherever you want with the {{VERIFICATION_CODE}} format.
},
smsOptions: {
to: 'target Number',
from: 'Enter the registered calling number from your account',
type: 'SMS',
},
});
const sendVerifySmsResult = await this.solapiService.CustomSolapi.SmsVerify.send({
config: {
verificationCodeLength: 10, //Code Length
verificationCodeType: 'ALPHABET_ONLY', // 'NUMBER_ONLY' | 'ALPHABET_ONLY' | 'MIX'
verificationMessage: 'Verification Code is: {{VERIFICATION_CODE}}', // Inject wherever you want with the {{VERIFICATION_CODE}} format.
},
smsOptions: {
to: 'target Number',
from: 'Enter the registered calling number from your account',
type: 'SMS',
},
});

console.log(sendVerifySmsResult.verificationCode);
console.log(sendVerifySmsResult.smsResult);
Expand Down

0 comments on commit e8c2b06

Please sign in to comment.