tomba 1.1.0

Official Rust client library for the Tomba Email Finder API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::collections::HashMap;

use crate::error::TombaError;
use crate::tomba::{Tomba, TombaResponse};

impl Tomba {
    /// Detect the email format used by a company.
    ///
    /// See <https://developer.tomba.io/#email-format>
    pub fn email_format(
        &self,
        domain: &str,
    ) -> Result<TombaResponse, TombaError> {
        let mut params = HashMap::new();
        params.insert("domain".into(), domain.into());
        self.call("GET", "email-format", &params)
    }
}