Weblegit Validation Plugin For Validating

Email Addresses

Phone Number

Url Links

Domain



Plugin Integration Steps


A Pre-requiste : JQuery library is required for the plugin to work


B Intallation


  1. Create an account with weblegit.com
  2. Select a plan ( You can start with free plan)
  3. Configure the domain name where you want to use the plugin
  4. Copy the plugin url from your web integration page and paste it in your HTML source code

a Hands free integration for valiating email address on your page


If you have opted for automatic email verification then you are all set. If there is any email address field on the page the user will be prompted to correct the email address if they enter a wrong email address. The form with the email field would not submit until valid email address is entered.


b Take control of the steering


This is more suitable for people who are fmailiar with HTML and javascript. You can take control of the fields that you want to validate and the type of validation. For every input field that needs to be validated we need to add a class corresponding to the type of validation required.

Email Address : weblegit-verifyemail
 Eg. <input type="text" name="email" class="weblegit-verifyemail"/>
Phone Number : weblegit-verifyphone
 Eg.<input type="text" name="phone" class="weblegit-verifyphone"/>
Website Address: weblegit-verifydomain
 Eg. <input type="text" name="website" class="weblegit-verifydomain"/>
Links : weblegit-verifyurl
 Eg.<input type="text" name="link" class="weblegit-verifyurl"/>

The validation happens when the user clicks on the submit button on the page. It can be possible that we might not have/want any submit button on the web page. In case we do not have any submit button on the page we can add the class weblegit-form-submit to any other button clicking on which the validations would be triggered.


C Custom integration


This lets you to invoke the validation calls from your front end code using javascript. You can control how to consume the results and the actions to take. Once you have the plugin added to your page

Email Address Validation

	$.fn.weblegit.verifyemail = function(email,function(result){
				console.log(result);
				//consume the result and take action
	});
Response
Property Type Description
email String Email Address being validated
score Integer The score ranges from 0 t0 5 and indicates deliverability confidence. Anything less than 2 is non-deliverable.
disposable Boolean Indicates if the email is disposable
role Boolean True if the email is for role like admin, contact etc
valid Boolean Indictes thaat the email has valid syntax
catch_all Boolean True if email belong to catch all mail server
smtp_connection Boolean True if SMTP connection was sucessful
valid_format Boolean True if syntax is valid
execution_time Long Total execution time in milliseconds

Phone Number Verification

    $.fn.weblegit.verifyphone = function(phone, countryCode,function(result){
				console.log(result);
				//consume the result and take action
	});
Response
Property Type Description
e164Format String International format
localFormat String Local format
countryCode String Country code as determined from phone number if not already provided
location String Phone location
carrier String Carrier Name
lineType String Phone type, mobile or fixed (landline)
execution_time Long Total execution time in milliseconds

Link verification

    $.fn.weblegit.verifyurl = function(url,function(result){
				console.log(result);
				//consume the result and take action
	});
Response
Property Type Description
domainName String Domain Name being validated
status Integer HTTP status code for the url link
link String Url link being verified
valid Boolean True if the domain exists
execution_time Long Total execution time in milliseconds

Website Address /Domain Name Verification

    $.fn.weblegit.verifydomain = function(domainName,function(result){
				console.log(result
				//consume the result and take action	});

Response
Property Type Description
domainName String Domain Name being validated
registrationDate Date Domain registeration date
valid Boolean True if the domain exists
execution_time Long Total execution time in milliseconds


How Can We Help?