nexmo_verify 1.0.1 copy "nexmo_verify: ^1.0.1" to clipboard
nexmo_verify: ^1.0.1 copied to clipboard

A new Flutter plugin.

nexmo_verify #

A Nexmo Verify Rest API Flutter plugin.

How can use it? #

1. Create instance of Nexmo API handler and put apiKey and apiSecret. After that implement callbacks methods. #

 NexmoSmsVerificationUtil _nexmoSmsVerificationUtil = NexmoSmsVerificationUtil();
    _nexmoSmsVerificationUtil.initNexmo("apiKey", "apiSecret");
    _nexmoSmsVerificationUtil.addCallback(this);
```y

# 2. Send otp to mobile number.

_nexmoSmsVerificationUtil .sendOtp(_teCountryCode.text + _teMobileNumber.text, "Flutter") .then((dynamic res) { nexmoSuccess((res as BaseModel).nexmoResponse); });


# 3. Verify otp.

_nexmoSmsVerificationUtil .verifyOtp("OTP") .then((dynamic res) {});