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 {
    /// Get location details for a country code.
    ///
    /// See <https://developer.tomba.io/#location>
    pub fn get_location(
        &self,
        country: &str,
    ) -> Result<TombaResponse, TombaError> {
        let mut params = HashMap::new();
        params.insert("country".into(), country.into());
        self.call("GET", "location", &params)
    }
}