🍕 iOS wrapper for the simple disposable email hunter and validator
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ValidatorPizza/Classes
LICENSE
README.md
ValidatorPizza.podspec
_Pods.xcodeproj

README.md

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.