2 releases

0.1.1 May 22, 2023
0.1.0 May 22, 2023

#156 in #rest

MIT license

11KB
151 lines

emailvalidation-rs: Rust geolocation service via emailvalidation.io

This package is a Rust wrapper for emailvalidation.io that aims to make the usage of the API as easy as possible in your project. Emailvalidation is an email validation API that enables you to improve your marketing campaigns & conversion rates!

Installation

This crate is under development. Especially the response parsing needs some more testing. However, if you still want to use it, you can install it by adding this to your Cargo.toml:

[dependencies]
emailvalidation = "0.1.1"

Requirements

  1. API Key for emailvalidation.io
  2. Async runtime like tokio

Quickstart

use emailvalidation::Emailvalidation;
use emailvalidation::models;

async fn request_latest() -> Result<models::DetailsResponse, ipbase::Error> {
    let emailvalidation_api = Emailvalidation::new("<your-api-key>")?;
    let details = emaailvalidation_api.info("john@doe.com").await?;
     Ok(details)
}

Find out more about our endpoints, parameters and response data structure in the docs

License

The MIT License (MIT). Please see License File for more information.

Dependencies

~4–15MB
~223K SLoC