otobank/treasure

TreasureData REST API Wrapper

0.1.1 2023-07-24 08:15 UTC

This package is auto-updated.

Last update: 2024-10-22 02:23:46 UTC


README

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,
]);