alidartmedia / nextversms

This is library for send SMS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NextVerSMS (DEMO)

This is library for send SMS

Implementation

1. Gradle (settings.gradle)

dependencyResolutionManagement {
    ...
    
    repositories {
        ...
        
        maven { url 'https://jitpack.io' }
    }
}

2. Gradle (build.gradle/app)

dependencies {
    implementation 'com.github.alidartmedia:nextversms:$latestVersion'
}

3. Sample Code

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
    }
})

About

This is library for send SMS


Languages

Language:Kotlin 100.0%