<?phpuse Tomba\Client;use Tomba\Services\Domain;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$domain = new Domain($client);$result = $domain->domainSearch('stripe.com');
Email Finder
Find the verified email address of any professional.
Code
<?phpuse Tomba\Client;use Tomba\Services\Finder;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$finder = new Finder($client);$result = $finder->emailFinder('stripe.com', 'fname', 'lname');.
Email Verifier
Verify the validity of any professional email address with the most complete email checker.
Code
<?phpuse Tomba\Client;use Tomba\Services\Verifier;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$verifier = new Verifier($client);$result = $verifier->emailVerifier('m@wordpress.org');
Examples
Get Account Information
Code
<?phpuse Tomba\Client;use Tomba\Services\Account;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$account = new Account($client);$result = $account->getAccount();
Email Count
Code
<?phpuse Tomba\Client;use Tomba\Services\Count;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$count = new Count($client);$result = $count->emailCount('tomba.io');
Finder Services
Author Finder
This API endpoint generates or retrieves the most likely email address from a blog post url.
Code
<?phpuse Tomba\Client;use Tomba\Services\Finder;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$finder = new Finder($client);$result = $finder->authorFinder('https://clearbit.com/blog/company-name-to-domain-api');
LinkedIn Finder
This API endpoint generates or retrieves the most likely email address from a Linkedin URL.
Code
<?phpuse Tomba\Client;use Tomba\Services\Finder;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$finder = new Finder($client);$result = $finder->linkedinFinder('https://www.linkedin.com/in/alex-maccaw-ab592978');
Phone Finder
Search phone are based on the email You give one email and it returns phone data.
Code
<?phpuse Tomba\Client;use Tomba\Services\Finder;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$finder = new Finder($client);$result = $finder->phoneFinder('******@zapier.com');
API Key Management
Create API Key
Code
<?phpuse Tomba\Client;use Tomba\Services\Keys;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$keys = new Keys($client);$result = $keys->createKey();
Delete API Key
Code
<?phpuse Tomba\Client;use Tomba\Services\Keys;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$keys = new Keys($client);$result = $keys->deleteKey('');
Get All API Keys
Code
<?phpuse Tomba\Client;use Tomba\Services\Keys;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$keys = new Keys($client);$result = $keys->getKeys();
Reset API Key
Code
<?phpuse Tomba\Client;use Tomba\Services\Keys;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$keys = new Keys($client);$result = $keys->resetKey('');
Lead Attributes Management
Create Lead Attribute
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsAttributes;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsAttributes = new LeadsAttributes($client);$result = $leadsAttributes->createLeadAttribute();
Delete Lead Attribute
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsAttributes;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsAttributes = new LeadsAttributes($client);$result = $leadsAttributes->deleteLeadAttribute('[Lead_Attributes_ID]');
Get Lead Attributes
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsAttributes;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsAttributes = new LeadsAttributes($client);$result = $leadsAttributes->getLeadAttributes();
Update Lead Attribute
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsAttributes;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsAttributes = new LeadsAttributes($client);$result = $leadsAttributes->updateLeadAttribute('[Lead_Attributes_ID]');
Lead Lists Management
Create Lead List
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsLists;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsLists = new LeadsLists($client);$result = $leadsLists->createList();
Delete Lead List
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsLists;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsLists = new LeadsLists($client);$result = $leadsLists->deleteListId('[LIST_ID]');
Get All Lead Lists
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsLists;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsLists = new LeadsLists($client);$result = $leadsLists->getLists();
Update Lead List
Code
<?phpuse Tomba\Client;use Tomba\Services\LeadsLists;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$leadsLists = new LeadsLists($client);$result = $leadsLists->updateListId('[List_ID]');
Activity Logs
Code
<?phpuse Tomba\Client;use Tomba\Services\Logs;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$logs = new Logs($client);$result = $logs->getLogs();
Email Sources
Code
<?phpuse Tomba\Client;use Tomba\Services\Sources;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$sources = new Sources($client);$result = $sources->emailSources('b.mohamed@tomba.io');
Domain and Company Status
Auto Complete
Code
<?phpuse Tomba\Client;use Tomba\Services\Status;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$status = new Status($client);$result = $status->autoComplete('google');
Domain Status
Code
<?phpuse Tomba\Client;use Tomba\Services\Status;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$status = new Status($client);$result = $status->domainStatus('gmail.com');
Usage Statistics
Code
<?phpuse Tomba\Client;use Tomba\Services\Usage;$client = new Client();$client ->setKey('ta_xxxx') // Your API Key ->setSecret('ts_xxxx') // Your Secret;$usage = new Usage($client);$result = $usage->getUsage();
For more sample codes, check the examples/ folder.