07/05
2018
Fetch CODA files from Codabox via the Tigron Restfull API
Fetch CODA files from Codabox via the Tigron REST gateway. For more information on this service, visit: https://codabox.tigron.net, (*1)
installation via composer:, (*2)
composer require tigron/codabox-gateway
Configure your Connection:, (*3)
\Tigron\Codabox\Config::$key = 'YOUR_API_KEY';
Get 1 CODA file by its ID:, (*4)
$coda_files = \Tigron\Codabox\Coda::get_by_id('00000000-0000-0000-0000-000000000000');
Get all CODA files for a specified year:, (*5)
$coda_files = \Tigron\Codabox\Coda::get_by_year(2018);
Get unprocessed CODA files:, (*6)
$coda_files = \Tigron\Codabox\Coda::get_unprocessed();
Mark a CODA file as 'processed':, (*7)
$coda = \Tigron\Codabox\Coda::get_by_id('00000000-0000-0000-0000-000000000000'); $coda->mark_processed();
Mark a CODA file as 'unprocessed':, (*8)
$coda = \Tigron\Codabox\Coda::get_by_id('00000000-0000-0000-0000-000000000000'); $coda->mark_unprocessed();