vetromedia/vetro-reporting-push 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-11-20