Skip to content

Latest commit

 

History

History
116 lines (82 loc) · 4.45 KB

LeadEnrichmentApi.md

File metadata and controls

116 lines (82 loc) · 4.45 KB

Swagger\Client\LeadEnrichmentApi

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

leadEnrichmentEnrichLead

\Swagger\Client\Model\LeadEnrichmentResponse leadEnrichmentEnrichLead($request)

Enrich an input lead with additional fields of data

Example

<?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;
}
?>

Parameters

Name Type Description Notes
request \Swagger\Client\Model\LeadEnrichmentRequest Input lead with known fields set, and unknown fields left blank (null)

Return type

\Swagger\Client\Model\LeadEnrichmentResponse

Authorization

Apikey

HTTP request headers

  • 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]

leadEnrichmentGetCompanyInformation

\Swagger\Client\Model\LeadEnrichmentResponse leadEnrichmentGetCompanyInformation($request)

Get company information from email address

Example

<?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;
}
?>

Parameters

Name Type Description Notes
request \Swagger\Client\Model\EmailLead Input email address lead

Return type

\Swagger\Client\Model\LeadEnrichmentResponse

Authorization

Apikey

HTTP request headers

  • 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]