This is library for send SMS
dependencyResolutionManagement {
...
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.alidartmedia:nextversms:$latestVersion'
}
val nextVerSMS = NextVerSMS.Builder()
.apiKey(API_KEY)
.apiSecret(API_SECRET)
.build()
nextVerSMS.verify(PHONE_NUMBER, object : VerifyListener {
override fun onSuccess() {
//Do something when success
}
override fun onFailed(errorMessage: String) {
//Do something when failed
}
})