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

namespace MauticPlugin\MauticClearbitBundle\Services;

/**
 * This class handles everything related to the Person lookup API.
 */
class Clearbit_Person extends Clearbit_Base
{
    protected $_resourceUri = '/people/find';

    protected $_baseUri     = 'https://person.clearbit.com/';

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

        return $this->response_obj;
    }
}