iprit/botan-php

PHP SDK for Botan.io

v1.0.2 2015-08-11 14:59 UTC

This package is not auto-updated.

Last update: 2024-04-17 08:09:22 UTC


README

Installation

To get started, get Composer.

Run:

$ php composer.phar require iprit/botan-php:*

or add

"iprit/botan-php": "*"

to the require section of your composer.json file.

Usage

Create Yandex.AppMetrica api token and insert into $token variable.

private $token = 'token';

public function _incomingMessage($message_json) {
    $messageObj = json_decode($message_json, true);
    $messageData = $messageObj['message'];

    $botan = new IPRIT\BotanSDK\Botan($this->token);
    $botan->track($messageData, 'Start');
}