All URIs are relative to https://api.cloudmersive.com
Method | HTTP request | Description |
---|---|---|
leadEnrichmentEnrichLead | POST /validate/lead-enrichment/lead/enrich | Enrich an input lead with additional fields of data |
leadEnrichmentGetCompanyInformation | POST /validate/lead-enrichment/lead/email/company-information | Get company information from email address |
\Swagger\Client\Model\LeadEnrichmentResponse leadEnrichmentEnrichLead($request)
Enrich an input lead with additional fields of data
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\LeadEnrichmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client(),
$config
);
$request = new \Swagger\Client\Model\LeadEnrichmentRequest(); // \Swagger\Client\Model\LeadEnrichmentRequest | Input lead with known fields set, and unknown fields left blank (null)
try {
$result = $apiInstance->leadEnrichmentEnrichLead($request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling LeadEnrichmentApi->leadEnrichmentEnrichLead: ', $e->getMessage(), PHP_EOL;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\LeadEnrichmentRequest | Input lead with known fields set, and unknown fields left blank (null) |
\Swagger\Client\Model\LeadEnrichmentResponse
- Content-Type: application/json, text/json
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
\Swagger\Client\Model\LeadEnrichmentResponse leadEnrichmentGetCompanyInformation($request)
Get company information from email address
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: Apikey
$config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('Apikey', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('Apikey', 'Bearer');
$apiInstance = new Swagger\Client\Api\LeadEnrichmentApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
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;
}
?>
Name | Type | Description | Notes |
---|---|---|---|
request | \Swagger\Client\Model\EmailLead | Input email address lead |
\Swagger\Client\Model\LeadEnrichmentResponse
- Content-Type: application/json, text/json
- Accept: application/json, text/json, application/xml, text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]