iprit/botan-php

Botan.io 的 PHP SDK

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

This package is not auto-updated.

Last update: 2024-09-18 10:25:27 UTC


README

安装

要开始,请获取 Composer

运行

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

或将

"iprit/botan-php": "*"

添加到您的 composer.json 文件的 require 部分。

使用方法

创建 Yandex.AppMetrica api 令牌,并将其插入到 $token 变量中。

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');
}