vetromedia/vetro-reporting-push
最新稳定版本:1.1.1
Composer 安装命令:
composer require vetromedia/vetro-reporting-push
包简介
This package helps push data from USSD & Whatsapp lines to the reporting tool hosted in https://reporting.vetroms.co.za
README 文档
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));
统计信息
- 总下载量: 36
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2024-11-20