Integration/AbstractNeustarIntegration.php
public function doEnhancement(Lead $lead)
    {
        $keys = $this->getKeys();

        $query = [
            'username' => $keys['username'],
            'password' => $keys['password'],
            'svcid'    => $keys['serviceId'],
            'elems'    => $this->getNeustarElementId(),
            'version'  => '1.0',
            'transid'  => '1',
        ];

        foreach ($this->getNeustarServiceKeys() as $serviceKey) {
            $query['key'.$serviceKey] = $this->getServiceIdData($lead, $serviceKey);
        }

        $settings = $this->getIntegrationSettings()->getFeatureSettings();

        $neustarClient = new Client();
        /** @var Response $neustarResponse */
        $neustarResponse = $neustarClient->request('GET', $settings['endpoint'], ['query' => $query, 'timeout' => 3, 'connect_timeout' => 2]);

        return $this->processResponse($lead, $neustarResponse);
    }
public function doEnhancement(Lead $lead)
    {
        $keys = $this->getKeys();

        $query = [
            'username' => $keys['username'],
            'password' => $keys['password'],
            'svcid'    => $keys['serviceId'],
            'elems'    => $this->getNeustarElementId(),
            'version'  => '1.0',
            'transid'  => '1',
        ];

        foreach ($this->getNeustarServiceKeys() as $serviceKey) {
            $query['key'.$serviceKey] = $this->getServiceIdData($lead, $serviceKey);
        }

        $settings = $this->getIntegrationSettings()->getFeatureSettings();

        $neustarClient = new Client();
        /** @var Response $neustarResponse */
        $neustarResponse = $neustarClient->request('GET', $settings['endpoint'], ['query' => $query, 'timeout' => 3, 'connect_timeout' => 2]);

        return $this->processResponse($lead, $neustarResponse);
    }
@param Lead $lead

@return bool

@throws \GuzzleHttp\Exception\GuzzleException