# Rust Client Library

## Installation

Add this to your package's `Cargo.toml` file:

```toml
[dependencies]
tomba = "0.1"
```

## Usage

### Domain Search

Get email addresses found on the internet.

```rust
use tomba::{Tomba, TombaConfig};

let config = TombaConfig {
   key: "ta_xxxx".to_string(),
   secret: "ts_xxxx".to_string(),
};

let mut tomba = Tomba::init(config).expect("should construct");

let res = tomba.domain_search("tomba.io".to_string()).expect("should do domain_search ");

println!("website country {:?}", res.data.organization.location.country);
```

### Email Finder

Find the verified email address of any professional.

```rust
use tomba::{Tomba, TombaConfig};

let config = TombaConfig {
   key: "ta_xxxx".to_string(),
   secret: "ts_xxxx".to_string(),
};

let mut tomba = Tomba::init(config).expect("should construct");

let res = tomba.email_finder("zapier.com".to_string(), "F_NAME".to_string(), "L_NAME".to_string()).expect("should do email finder");

println!("Email Finder email {}", res.data.email)
```

### Email Verifier

Verify the validity of any professional email address with the most complete email checker.

```rust
use tomba::{Tomba, TombaConfig};

let config = TombaConfig {
   key: "ta_xxxx".to_string(),
   secret: "ts_xxxx".to_string(),
};

let mut tomba = Tomba::init(config).expect("should construct");

let res = tomba.email_verifier("m@wordpress.org".to_string()).expect("should do verify");

println!("Email status {}", res.data.email.status)
```
