Language Libraries
Dart Client Library
Installation
Add this to your package's pubspec.yaml
file:
Codedependencies: tomba: ^v1.0.1
You can install packages from the command line With Dart:
Codedart pub add tomba
Usage
Domain Search
get email addresses found on the internet.
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Domain domain = Domain(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = domain.domainSearch( domain: 'stripe.com', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Email Finder
Find the verified email address of any professional.
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Finder finder = Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = finder.emailFinder( domain: 'stripe.com', firstName: 'Fname', lastName: 'Lname', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Email Verifier
Verify the validity of any professional email address with the most complete email checker.
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Verifier verifier = Verifier(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = verifier.emailVerifier( email: 'm@wordpress.org', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Examples
Get Account Information
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Account account = Account(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = account.getAccount(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Email Count
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Count count = Count(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = count.emailCount( domain: 'tomba.io', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Finder Services
Author Finder
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Finder finder = Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = finder.authorFinder( url: 'https://clearbit.com/blog/company-name-to-domain-api', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
LinkedIn Finder
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Finder finder = Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = finder.linkedinFinder( url: 'https://www.linkedin.com/in/alex-maccaw-ab592978', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Phone Finder
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Finder finder = Finder(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = finder.phoneFinder( email: '******@zapier.com', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
API Key Management
Create API Key
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Keys keys = Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = keys.createKey(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Delete API Key
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Keys keys = Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = keys.deleteKey( id: '', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Get All API Keys
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Keys keys = Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = keys.getKeys(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Reset API Key
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Keys keys = Keys(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = keys.resetKey( id: '', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Lead Attributes Management
Create Lead Attribute
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsAttributes leadsAttributes = LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsAttributes.createLeadAttribute(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Delete Lead Attribute
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsAttributes leadsAttributes = LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsAttributes.deleteLeadAttribute( id: '[Lead_Attributes_ID]', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Get Lead Attributes
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsAttributes leadsAttributes = LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsAttributes.getLeadAttributes(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Update Lead Attribute
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsAttributes leadsAttributes = LeadsAttributes(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsAttributes.updateLeadAttribute( id: '[Lead_Attributes_ID]', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Lead Lists Management
Create Lead List
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsLists leadsLists = LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsLists.createList(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Delete Lead List
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsLists leadsLists = LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsLists.deleteListId( id: '[LIST_ID]', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Get All Lead Lists
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsLists leadsLists = LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsLists.getLists(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Update Lead List
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); LeadsLists leadsLists = LeadsLists(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = leadsLists.updateListId( id: '[List_ID]', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Activity Logs
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Logs logs = Logs(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = logs.getLogs(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Email Sources
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Sources sources = Sources(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = sources.emailSources( email: 'b.mohamed@tomba.io', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Domain and Company Status
Auto Complete
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Status status = Status(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = status.autoComplete( query: 'google', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Domain Status
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Status status = Status(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = status.domainStatus( domain: 'gmail.com', ); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
Usage Statistics
Codeimport 'package:tomba/tomba.dart'; void main() { // Init SDK Client client = Client(); Usage usage = Usage(client); client .setKey("ta_xxxx") // Your Key .setSecret("ts_xxxx"); // Your Secret ; Future result = usage.getUsage(); result .then((response) { print(response); }).catchError((error) { print(error.response); }); }
For more sample codes, check the examples/ folder.
Last modified on