otobank / treasure
TreasureData REST API Wrapper
Installs: 9 223
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 19
Forks: 2
Open Issues: 0
Requires
- php: ^7.2.5 || ^8.0
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2024-11-22 02:39:50 UTC
README
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, ]);