General Documentation • Wiki • Integration • Contributing • Gallery • FAQ
Meet humanID - An anonymous online identity, enabling platforms to offer the speed and comfort of social logins, while guaranteeing absolute privacy and protecting our communities by permanently blocking bots, spams, and trolls.
- API level 21 or higher
- Build with Kotlin
Please update to the latest SDK!
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
.
.
.
dependencies {
implementation 'com.github.human-internet:humanid-android-sdk:Tag'
}
Get the appId and appSecret by dropping us an email developers@human-id.org.
Build the object easier just with this
val humanIdSDK: HumanIdSDK? by lazy {
HumanIdSDK.Builder()
.withActivity(this)
.addClientId(getString(R.string.client_id))
.addClientSecret(getString(R.string.client_secret))
.setDefaultLanguage(SupportedLanguage.FRENCH)
.setPriorityCountryCodes(arrayOf(
CountryCode.UNITED_STATES,
CountryCode.FRANCE,
CountryCode.JAPAN,
CountryCode.INDONESIA
)).build()
}
Add these codes into your Activity, we recommend you wrap this in a function that handles the login button.
humanIdSDK?.login()
//And in onActivityResult()
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
val exchangeToken = humanIdSDK?.getHumanIdExchangeToken(requestCode, resultCode, data)
}
Now you can integrate your Android app to humanID. See the full sample here to learn more.
Copyright 2019-2020 Bluenumber Foundation Licensed under the GNU General Public License v3.0