vetromedia/vetro-reporting-push

There is no license information available for the latest version (1.1.1) of this package.

This package helps push data from USSD & Whatsapp lines to the reporting tool hosted in https://reporting.vetroms.co.za

1.1.1 2025-06-15 17:18 UTC

This package is not auto-updated.

Last update: 2025-06-15 17:22:00 UTC


README

This package helps push data for campaigns to the reporting tool.

Installtation

$ composer require vetromedia/vetro-reporting-push

How to use?

use Vetromedia\VetroReportingPush\Enums\SessionStates;
use Vetromedia\VetroReportingPush\PushSessionManager;

require __DIR__.'/../vendor/autoload.php';

$pushSessionManager = new PushSessionManager(
    'YOUR_CAMPAIGN_ID',
    'YOUR_API_TOKEN'
);

$startSession = $pushSessionManager->startSession('27731468815', 4));
$pushSessionManager->sumbitFields($startSession->id, [
'first_name' => 'John',
'surname' => 'Doe',
'email_address' => 'email@email.com',
'province' => 'Gauteng',
'age_above_18' => 'Yes',
'receive_offers_via_email' => 'No',
'receive_offers_via_sms' => 'No',
'terms_and_conditions' => true
]));

print_r($pushSessionManager->closeSession($startSession->id, SessionStates::DUPLICATE));