Skip to main content

Crate tomba

Crate tomba 

Source
Expand description

§Tomba – Email Finder for B2B sales and email marketing

This is the official Rust client library for the Tomba API.

§Supported endpoints

EndpointMethod
Domain Searchdomain_search
Email Finderemail_finder
Email Verifieremail_verifier
Email Sourcesemail_sources
Email Countcount
Domain Statusstatus
Autocompleteautocomplete
Phone Finderphone_finder
Phone Validatorphone_validator
Similar Domainssimilar_domains
Technology Checkertechnology_check
Email Formatemail_format
Locationget_location
Enrichmentperson_find, company_find, combined_find
Companies Searchcompanies_search
Keyslist_keys, get_key, create_key, delete_key, reset_key
Flagslist_flags, create_flag
Leadslist_leads, get_lead, create_lead, update_lead, delete_lead
Leads Listslist_leads_lists, get_leads_list, create_leads_list, update_leads_list, delete_leads_list
Leads Attributeslist_leads_attributes, get_leads_attribute, create_leads_attribute, update_leads_attribute, delete_leads_attribute
Bulklist_bulk, get_bulk, create_bulk, launch_bulk, delete_bulk, archive_bulk, rename_bulk, bulk_progress, bulk_download

§Quick start

use tomba::{Tomba, TombaConfig};

let config = TombaConfig {
    key: "ta_xxxx".to_string(),
    secret: "ts_xxxx".to_string(),
};
let tomba = Tomba::init(config).expect("should construct");

let response = tomba.account().expect("should get account");
println!("{:?}", response.data);
println!("{:?}", response.rate_limit);

Re-exports§

pub use error::TombaError;

Modules§

error
Error types for the Tomba SDK.

Structs§

RateLimit
Rate-limit information extracted from response headers.
Tomba
The Tomba API client.
TombaConfig
Configuration for the Tomba client.
TombaResponse
A response from the Tomba API containing the parsed JSON body and rate-limit metadata from the response headers.

Functions§

parse_rate_limit
Parse rate-limit headers from an HTTP response.