// Address autocomplete
launify.autocomplete({
field: '#address',
country: 'CZ',
onSelect: (data) => {
console.log(data.street);
}
});
<input type="email" data-launify-validate="email" placeholder="Email..." />
// Phone validation
validatePhone("+420722111836")
.then(result => {
if(result.valid) {
// ✓ Valid number
}
});
POST /v1/address/suggest
{
"query": "Václavské",
"country": "CZ",
"limit": 5
}
response: {
validated: true,
format: "international",
carrier: "T-Mobile"
}
// Email verification
launify.verifyEmail({
email: "user@example.com",
checkMX: true,
checkDisposable: true
});
suggestions: [{
street: "Sokola Tůmy 743/16",
city: "Ostrava",
zip: "709 00"
}]
// Initialize Launify
const launify = new Launify({
apiKey: 'sk_live_***',
locale: 'cs'
});
<div data-launify> <input name="street" /> <input name="city" /> <input name="zip" /> </div>
// Address validation
validateAddress({
street: "Václavské nám. 1",
city: "Praha",
zip: "110 00"
})
GET /v1/phone/validate ?number=%2B420722111836 &format=E164 &parseCarrier=true
{
"email": {
"valid": true,
"disposable": false,
"role": false
}
}
onAddressSelect: (addr) => {
$('#street').val(addr.street);
$('#city').val(addr.city);
}
// Company autocomplete
launify.companyLookup({
ico: "19380038",
country: "CZ"
})
response.phone: {
valid: true,
international: "+420722111836",
national: "722 111 836"
}
minChars: 3, maxSuggestions: 5, debounce: 300, autoFill: true
INTEGRATION.TRY_DIFFERENT