Skip to content

Commit

Permalink
Merge pull request #8 from karuppiah7890/fix/readme
Browse files Browse the repository at this point in the history
Fix README fixing callback function body
  • Loading branch information
rwalkover authored May 8, 2017
2 parents 4780f28 + 985319b commit 7556142
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@ sendOtp.retry("919999999999", false, function (error, data, response) {
To verify OTP
```javascript
sendOtp.verify("919999999999", "4365", function (error, data, response) {
if(data.msgType == 'success') console.log('OTP verified successfully')
if(data.msgType == 'error') console.log('OTP verification failed')
console.log(data); // data object with keys 'message' and 'type'
if(data.type == 'success') console.log('OTP verified successfully')
if(data.type == 'error') console.log('OTP verification failed')
});
```

Expand Down

0 comments on commit 7556142

Please sign in to comment.