BigDataCloud API Validation
- Aryn Wiebe
This is a utility component which uses the BigDataCloud API to validate emails and phone numbers.
How it works:
See Create a Component if you need a refresher.
Go to BigDataCloud to sign up - https://www.bigdatacloud.com/ .
Go to Credentials and copy the API key.
The component uses the BIGDATA Library to connect and call two example client methods:
c:validatePhone to validate a phone number against the BigDataCloud API.
c:validateEmail to validate an email against the BigDataCloud API.
The returned validation results are stored in a table called “out“, serialized and queued for a downstream component to process as needed.
Modify the passed arguments to test it for yourself!
For reference here is a sample json response for an email validation from the BigDataCloud API:
{
"inputData": "test@gmail.com",
"isValid": true,
"isSyntaxValid": true,
"isMailServerDefined": true,
"isKnownSpammerDomain": false,
"isDisposable": false
}
Â