Skip to content

TreasureData REST API (Postback API) Wrapper (JavaScript SDK like)

Notifications You must be signed in to change notification settings

otobank/treasure-php

Repository files navigation

TreasureData REST API Wrapper

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

About

TreasureData REST API (Postback API) Wrapper (JavaScript SDK like)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages