Skip to content

imryan/validatorpizza-ios

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Validator.pizza iOS

πŸ• Bite-sized iOS wrapper for the simple disposable email hunter and validator.

CI Status Version License Platform

Usage

// Validating a domain
[ValidatorPizza check:@"example.com" type:VPCheckTypeDomain block:^(BOOL isValid, NSDictionary *results, NSError *error) {
    if (!error) ...
}];

// Validating an email address
[ValidatorPizza check:@"me@example.com" type:VPCheckTypeEmail block:^(BOOL isValid, NSDictionary *results, NSError *error) {
    if (!error) ...
}];

Response

Result dictionaries contain a structure such as:

// Valid email
{
  "status": 200,
  "email": "email@example.com",
  "domain": "example.com",
  "mx": false,
  "disposable": false,
  "alias": false,
  "did_you_mean": false,
  "remaining_requests": 119
}
// Invalid email
{
  "status": 400,
  "error": "The email address is invalid."
}
// Requests limit reached
{
  "status": 429,
  "error": "Rate limit exceeded."
}

Author

Ryan Cohen, notryancohen@gmail.com

License

ValidatorPizza is available under the MIT license. See the LICENSE file for more info.

About

πŸ• iOS wrapper for the simple disposable email hunter and validator

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published