Language Libraries
Node Client Library
Installation
To install via NPM:
Codenpm install tomba --save
To install via YARN:
Codeyarn add tomba
Usage
Domain Search
get email addresses found on the internet.
Codeimport { TombaClient, Domain } from "tomba"; // Init Tomba const client = new TombaClient(); const domain = new Domain(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = domain.domainSearch("stripe.com"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Email Finder
Find the verified email address of any professional.
Codeimport { TombaClient, Finder } from "tomba"; // Init Tomba const client = new TombaClient(); const finder = new Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = finder.emailFinder("stripe.com", "fname", "lname"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Email Verifier
Verify the validity of any professional email address with the most complete email checker.
Codeimport { TombaClient, Verifier } from "tomba"; // Init Tomba const client = new TombaClient(); const verifier = new Verifier(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = verifier.emailVerifier("m@wordpress.org"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Examples
Get Account Information
Codeimport { TombaClient, Account } from "tomba"; // Init Tomba const client = new TombaClient(); const account = new Account(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = account.getAccount(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Email Count
Codeimport { TombaClient, Count } from "tomba"; // Init Tomba const client = new TombaClient(); const count = new Count(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = count.emailCount("tomba.io"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Finder Services
Author Finder
Codeimport { TombaClient, Finder } from "tomba"; // Init Tomba const client = new TombaClient(); const finder = new Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = finder.authorFinder("www.shopify.com/blog/self-publish-a-book"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Email Enrichment
Codeimport { TombaClient, Finder } from "tomba"; // Init Tomba const client = new TombaClient(); const finder = new Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = finder.emailEnrichment("dayna.winter@shopify.com"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
LinkedIn Finder
Codeimport { TombaClient, Finder } from "tomba"; // Init Tomba const client = new TombaClient(); const finder = new Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = finder.linkedinFinder("https://www.linkedin.com/in/mattm"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
API Key Management
Create API Key
Codeimport { TombaClient, Keys } from "tomba"; // Init Tomba const client = new TombaClient(); const keys = new Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = keys.createKey(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Delete API Key
Codeimport { TombaClient, Keys } from "tomba"; // Init Tomba const client = new TombaClient(); const keys = new Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = keys.deleteKey(""); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Get All API Keys
Codeimport { TombaClient, Keys } from "tomba"; // Init Tomba const client = new TombaClient(); const keys = new Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = keys.getKeys(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Reset API Key
Codeimport { TombaClient, Keys } from "tomba"; // Init Tomba const client = new TombaClient(); const keys = new Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = keys.resetKey(""); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Lead Attributes Management
Create Lead Attribute
Codeimport { TombaClient, LeadsAttributes } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsAttributes = new LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsAttributes.createLeadAttribute(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Delete Lead Attribute
Codeimport { TombaClient, LeadsAttributes } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsAttributes = new LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsAttributes.deleteLeadAttribute("[Lead_Attributes_ID]"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Get Lead Attributes
Codeimport { TombaClient, LeadsAttributes } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsAttributes = new LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsAttributes.getLeadAttributes(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Update Lead Attribute
Codeimport { TombaClient, LeadsAttributes } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsAttributes = new LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsAttributes.updateLeadAttribute("[Lead_Attributes_ID]"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Lead Lists Management
Create Lead List
Codeimport { TombaClient, LeadsLists } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsLists = new LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsLists.createList(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Delete Lead List
Codeimport { TombaClient, LeadsLists } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsLists = new LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsLists.deleteListId("[LIST_ID]"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Get All Lead Lists
Codeimport { TombaClient, LeadsLists } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsLists = new LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsLists.getLists(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Update Lead List
Codeimport { TombaClient, LeadsLists } from "tomba"; // Init Tomba const client = new TombaClient(); const leadsLists = new LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = leadsLists.updateListId("[List_ID]"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Activity Logs
Codeimport { TombaClient, Logs } from "tomba"; // Init Tomba const client = new TombaClient(); const logs = new Logs(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = logs.getLogs(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Email Sources
Codeimport { TombaClient, Sources } from "tomba"; // Init Tomba const client = new TombaClient(); const sources = new Sources(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = sources.emailSources("b.mohamed@tomba.io"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Domain and Company Status
Domain Status
Codeimport { TombaClient, Status } from "tomba"; // Init Tomba const client = new TombaClient(); const status = new Status(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = status.domainStatus("gmail.com"); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
Usage Statistics
Codeimport { TombaClient, Usage } from "tomba"; // Init Tomba const client = new TombaClient(); const usage = new Usage(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret const result = usage.getUsage(); result .then((response) => { console.log(response); }) .catch((err) => { console.log(err); });
For more sample codes, check the examples/ folder.
Last modified on