0% found this document useful (0 votes)
6 views

Lazyclick Integration Guide

Uploaded by

leeveshk12
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Lazyclick Integration Guide

Uploaded by

leeveshk12
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Lazyclick

Add WhatsApp Login


to your app/website

WhatsApp No OTPs Fast & Secure


cost

Login with WhatsApp


Why WhatsApp Login?

Increased conversion
Streamline user verification
and turn more leads into
customers

Protect your users


Do away with OTPs, prevent
account takeovers with
WhatsApp

Improve user experience


Seamless phone verification
process for a delightful
experience
How it works?

Sign in
with WhatsApp

Redirected to WhatsApp

Instant
authentication

Redirected back

User Signed in

Sign in
Successful
Integration Guide
Choose your platform

Website

Javascript

App

Android
Javascript

Install the Lazyclick SDK


Copy-paste this code on your login page

<script type="text/javascript"
src="https://www.lazyclick.in/lazyclick.js"></script>

<script type="text/javascript">
lazyclick(function(wauser) {
console.log(wauser);
}, “Auth Key”); // Mail at [email protected] for Auth key
</script>
Android

Install the Lazyclick SDK


Step 1: Open settings.gradle/build.gradle(project)

repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }

maven {
url = "https://maven.pkg.github.com/lazyclick/lazyclick"
credentials {
username = "lazyclick"
password = "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"
}
}
}

Step 2: Add dependency inside build.gradle(app)

implementation 'com.lazyclick:lazyclick-android-sdk:1.0.4'
Step 3: Inside onCreate() on your Activity/Fragment

override fun onCreate(savedInstanceState: Bundle?) {


super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

// Do this on a button click where you want to login


Lazyclick.instance?.inti(”Auth Key” , this) // Initialize with Auth Key

Lazyclick.instance?.setListener(object : DataListener { // Callback


override fun onMessageReceived(jsonString: String) {
Log.i("TAG", "onMessageReceived: $jsonString")
}

override fun onMessageSent(jsonString: String) {


Log.i("TAG", "onMessageSent: $jsonString")
}

})
}
Auth Key
Mail us at [email protected] to get
Auth Key

Visit Pricing Page for more info.

Call us / WhatsApp us at 8447050052


to get more info

You might also like