1.0.0-beta • Published 2 years ago
valoore v1.0.0-beta
Valoore Client-Side Library
This package is for the Valoore API, we provide an easier more convenient way to validate emails.
Documentation
See the Valoore documentation to get more information on the API.
Installation
Add script to HTML file
<script src="//unpkg.com/valoore@1.0.0-beta/dist/valoore.js"></script>
Usage
You will need to acquire an API key from our website Valoore. It will be located in your dashboard:
const email = document.getElementById("input-text");
const apiKey = valoore.apiKey("2");
console.log(apiKey);
email.addEventListener("focusout",async () => {
const validate = await valoore.validate(apiKey, email.value);
console.log(validate); // will print a response code
});
The API will respond with response codes that signify different things:
Code | Reason |
---|---|
200 | The email appears to exist. |
0 | The API Key has not been authorized. |
1 | The email is not in the correct format. |
2 | The domain entered is not valid. |
3 | The email does not appear to exist. |
From there you can print out your own custom responses, or use a pre-determined one:
// assume the api key has been entered & email is an input field
email.addEventListener("focusout",async () => {
const validate = await valoore.validate(apiKey, email.value);
const response = valoore.responses(validate);
console.log(response); // will print a text response
});
Libraries
Library | Purpose | Link |
---|---|---|
Webpack | JS Bundler | webpack.com |
UnPkg | CDN Accessible | unpkg.com |
1.0.0-beta
2 years ago
0.0.0-beta
2 years ago
0.0.84
2 years ago
0.0.83
2 years ago
0.0.82
2 years ago
0.0.81
2 years ago
0.0.80
2 years ago
0.0.99
2 years ago
0.0.9
2 years ago
0.0.2
2 years ago
0.0.5-beta
2 years ago
0.0.4-beta
2 years ago
0.0.3-beta
2 years ago
0.0.2-beta
2 years ago
0.0.1-beta
2 years ago
0.0.1
2 years ago
0.0.0
2 years ago
1.0.0
2 years ago