Run this command to install the SDK:



Or add this snippet to your package.json:



Run this command to install the SDK:

pip install cloudmersive-validate-api-client


from __future__ import print_function
import time
import cloudmersive_validate_api_client
from cloudmersive_validate_api_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: Apikey
configuration = cloudmersive_validate_api_client.Configuration()
configuration.api_key['Apikey'] = 'YOUR_API_KEY'



# create an instance of the API class
api_instance = cloudmersive_validate_api_client.LeadEnrichmentApi(cloudmersive_validate_api_client.ApiClient(configuration))
request = cloudmersive_validate_api_client.EmailLead() # EmailLead | Input email address lead

try:
    # Get company information from email address
    api_response = api_instance.lead_enrichment_get_company_information(request)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling LeadEnrichmentApi->lead_enrichment_get_company_information: %s\n" % e)

Run this command to install the SDK:

Install-Package Cloudmersive.APIClient.NET.Validate -Version 3.2.0


using System;
using System.Diagnostics;
using Cloudmersive.APIClient.NET.Validate.Api;
using Cloudmersive.APIClient.NET.Validate.Client;
using Cloudmersive.APIClient.NET.Validate.Model;

namespace Example
{
    public class LeadEnrichmentGetCompanyInformationExample
    {
        public void main()
        {
            // Configure API key authorization: Apikey
            Configuration.Default.AddApiKey("Apikey", "YOUR_API_KEY");
            
            

            var apiInstance = new LeadEnrichmentApi();
            var request = new EmailLead(); // EmailLead | Input email address lead

            try
            {
                // Get company information from email address
                LeadEnrichmentResponse result = apiInstance.LeadEnrichmentGetCompanyInformation(request);
                Debug.WriteLine(result);
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling LeadEnrichmentApi.LeadEnrichmentGetCompanyInformation: " + e.Message );
            }
        }
    }
}

To install with Maven, add a reference to the repository in pom.xml:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>


And add a reference to the dependency in pom.xml:

<dependencies>
<dependency>
    <groupId>com.github.Cloudmersive</groupId>
    <artifactId>Cloudmersive.APIClient.Java</artifactId>
    <version>v4.25</version>
</dependency>
</dependencies>


To install with Gradle, add it in your root build.gradle at the end of repositories:

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}


And add the dependency in build.gradle:

dependencies {
        implementation 'com.github.Cloudmersive:Cloudmersive.APIClient.Java:v4.25'
}


// Import classes:
//import com.cloudmersive.client.invoker.ApiClient;
//import com.cloudmersive.client.invoker.ApiException;
//import com.cloudmersive.client.invoker.Configuration;
//import com.cloudmersive.client.invoker.auth.*;
//import com.cloudmersive.client.LeadEnrichmentApi;

ApiClient defaultClient = Configuration.getDefaultApiClient();

// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) defaultClient.getAuthentication("Apikey");
Apikey.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//Apikey.setApiKeyPrefix("Token");

LeadEnrichmentApi apiInstance = new LeadEnrichmentApi();
EmailLead request = new EmailLead(); // EmailLead | Input email address lead
try {
    LeadEnrichmentResponse result = apiInstance.leadEnrichmentGetCompanyInformation(request);
    System.out.println(result);
} catch (ApiException e) {
    System.err.println("Exception when calling LeadEnrichmentApi#leadEnrichmentGetCompanyInformation");
    e.printStackTrace();
}

Run this command to install the SDK:

composer require cloudmersive/cloudmersive_validate_api_client


<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');



$apiInstance = new Swagger\Client\Api\LeadEnrichmentApi(
    
    
    new GuzzleHttp\Client(),
    $config
);
$request = new \Swagger\Client\Model\EmailLead(); // \Swagger\Client\Model\EmailLead | Input email address lead

try {
    $result = $apiInstance->leadEnrichmentGetCompanyInformation($request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling LeadEnrichmentApi->leadEnrichmentGetCompanyInformation: ', $e->getMessage(), PHP_EOL;
}
?>

Add the Objective-C client to your Podfile:



Add the Ruby client to your Gemfile:

gem 'cloudmersive-validate-api-client', '~> 2.1.6'


# load the gem
require 'cloudmersive-validate-api-client'
# setup authorization
CloudmersiveValidateApiClient.configure do |config|
  # Configure API key authorization: Apikey
  config.api_key['Apikey'] = 'YOUR API KEY'
  # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
  #config.api_key_prefix['Apikey'] = 'Bearer'
end

api_instance = CloudmersiveValidateApiClient::LeadEnrichmentApi.new

request = CloudmersiveValidateApiClient::EmailLead.new # EmailLead | Input email address lead


begin
  #Get company information from email address
  result = api_instance.lead_enrichment_get_company_information(request)
  p result
rescue CloudmersiveValidateApiClient::ApiError => e
  puts "Exception when calling LeadEnrichmentApi->lead_enrichment_get_company_information: #{e}"
end

Download and copy the /client folder into your Apex project:

Download Apex Client

SwagLeadEnrichmentApi api = new SwagLeadEnrichmentApi();
SwagClient client = api.getClient();

// Configure API key authorization: Apikey
ApiKeyAuth Apikey = (ApiKeyAuth) client.getAuthentication('Apikey');
Apikey.setApiKey('YOUR API KEY');

Map<String, Object> params = new Map<String, Object>{
    'request' => SwagEmailLead.getExample()
};

try {
    // cross your fingers
    SwagLeadEnrichmentResponse result = api.leadEnrichmentGetCompanyInformation(params);
    System.debug(result);
} catch (Swagger.ApiException e) {
    // ...handle your exceptions
}

Install libcurl in your C/C++ project:

libcurl/7.75.0

This code snippet uses the built-in JavaScript XHR request capability


Walkthrough Video