for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PayBreak/paybreak-sdk-php package.
*
* (c) PayBreak <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace PayBreak\Sdk\Gateways;
/**
* Customer Intelligence Gateway
* @author GK
class CustomerIntelligenceGateway extends AbstractGateway
{
* @param string $installation
* @param string $token
* @param int $offset
* @param int $limit
* @return array
* @throws \WNowicki\Generic\Exception
public function getCustomerIntelligence($installation, $token, $offset = 0, $limit = 20)
return $this->fetchDocument(
'/v4/installations/' . $installation . '/lead-score?offset=' . $offset . '&limit=' . $limit,
$token,
'LeadScore'
);
}
* @param array $body
public function performLeadScore($installation, array $body, $token)
return $this->postDocument(
'/v4/installations/' . $installation . '/lead-score',
$body,