TreasureData REST API Wrapper (JavaScript SDK like)
PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
tests
.editorconfig
.gitignore
.travis.yml
README.md
composer.json
phpunit.xml.dist

README.md

TreasureData REST API Wrapper

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Installation

composer require otobank/treasure

Usage

<?php

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

use Otobank\Treasure\Treasure;

$treasure = new Treasure([
    'host' => 'in.treasuredata.com',
    'writeKey' => 'YOUR_WRITE_ONLY_APIKEY_IS_HERE',
    'database' => 'DATABASE_NAME',
]);

$treasure->addRecord([
    'itemId' => 101,
    'saleId' => 10,
    'userId' => 1,
]);