29 lines
644 B
PHP
Executable File
29 lines
644 B
PHP
Executable File
<?php
|
|
|
|
namespace MauticPlugin\MauticFullContactBundle\Services;
|
|
|
|
/**
|
|
* This class handles everything related to the Company lookup API.
|
|
*
|
|
* @author Adam Curtis <me@alc.im>
|
|
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache
|
|
*/
|
|
class FullContact_Company extends FullContact_Base
|
|
{
|
|
/**
|
|
* Supported lookup methods.
|
|
*
|
|
* @var array
|
|
*/
|
|
protected $_supportedMethods = ['domain'];
|
|
|
|
protected $_resourceUri = '/company/lookup.json';
|
|
|
|
public function lookupByDomain($search)
|
|
{
|
|
$this->_execute(['domain' => $search, 'method' => 'domain']);
|
|
|
|
return $this->response_obj;
|
|
}
|
|
}
|