vprtwn / bzgmailgunemailvalidation Goto Github PK
View Code? Open in Web Editor NEWObjC wrapper for the Mailgun email validation API
License: MIT License
ObjC wrapper for the Mailgun email validation API
License: MIT License
Is there an easy way to allow the '+' sign to be a valid character? Currently it returns false.
Hi! In your code I saw that you are using a fixed timeout of 3 seconds for connecting MailGun. In practice, I can say that when my cellular connection was just a bit not ideal, though quite stable, the validator frequently failed. It seems, 3 seconds are often not enough. Though making it much longer would disturb the user, of course... So, maybe you could add timeout as another validator property?
Thank you for a great API though!
How to move the success and failure blocks from the main queue. Can you give please give a solution
Scenerio : When typing is fast then the response which comes is uneven
i.e shrawan.com response is is_valid = false and did_you_mean is "shrawan.com"
and the response of shrawan.co is is_valid = true and did_you_mean is nil
Type : shrawan.com fast in app and call email Validation API
Log Trace
2017-03-08 11:42:13.254392 TextValidation[2261:547905] **didYouMean== [email protected] --- && isValid 0 **
2017-03-08 11:42:13.536171 TextValidation[2261:547905] **didYouMean== (null) --- && isValid 1 **
2017-03-08 11:42:14.446487 TextValidation[2261:547905] **didYouMean== [email protected] --- && isValid 0
So last log is isValid is 0 . Which is wrong and must be isValid is true
Demo app
Generate above scenerio
Cool class that I appreciated, but it passed success every time as there is not an if statement to display the failure if the is_valid key is 0.
I just added this that might help you finish this out.
if(isValid == YES) {
dispatch_async(dispatch_get_main_queue(), ^{
success(isValid, didYouMean);
});
} else {
NSError *errorVal = nil;
dispatch_async(dispatch_get_main_queue(), ^{
failure(errorVal);
});
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.