File size: 739 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
25
26
27
28
<?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_Batch extends FullContact_Base
{
    protected $_resourceUri = '/batch.json';

    /**
     * @param array $requests
     *
     * @throws \MauticPlugin\MauticFullContactBundle\Exception\FullContact_Exception_NoCredit
     * @throws \MauticPlugin\MauticFullContactBundle\Exception\FullContact_Exception_NotImplemented
     */
    public function sendRequests($requests)
    {
        $this->_execute([], ['requests' => $requests]);

        return $this->response_obj;
    }
}