File size: 534 Bytes
d2897cd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

namespace MauticPlugin\MauticClearbitBundle\Services;

/**
 * This class handles everything related to the Company lookup API.
 */
class Clearbit_Company extends Clearbit_Base
{
    public function __construct($api_key)
    {
        parent::__construct($api_key);
        $this->_baseUri     = 'https://company.clearbit.com/';
        $this->_resourceUri = '/companies/find';
    }

    public function lookupByDomain($search)
    {
        $this->_execute(['domain' => $search]);

        return $this->response_obj;
    }
}