zandor300 / solvari-php-sdk
Solvari PHP SDK - Update lead status in Solvari Pro
1.0.4
2024-05-20 17:34 UTC
Requires
- php: >=8.1.0
- ext-curl: *
- ext-json: *
This package is auto-updated.
Last update: 2024-11-20 18:27:55 UTC
README
PHP framework for updating the lead status in Solvari Pro.
Install
You can use composer to include this framework into your project. The project is available through Packagist.
composer require zandor300/solvari-php-sdk
Usage
use Solvari\Solvari;
use Solvari\SolvariLeadStatus;
use Solvari\Exception\SolvariException;
$solvari = new Solvari("API_KEY_HERE");
$solvariLeadId = 12345678;
$targetSolvariStatus = SolvariLeadStatus::QUOTE_SEND;
try {
$solvari->setLeadStatus($solvariLeadId, $targetSolvariStatus);
} catch(SolvariException $e) {
echo $e->getMessage();
}