otobank/treasure

TreasureData REST API Wrapper

0.1.1 2023-07-24 08:15 UTC

This package is auto-updated.

Last update: 2024-11-22 02:39:50 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,
]);