datatheke / client
PHP client for the Data Management System Datatheke ([http://www.datatheke.com/](http://www.datatheke.com/))
v0.2.1
2014-08-29 14:45 UTC
Requires
- php: >=5.4
- guzzlehttp/guzzle: ~4.0
- symfony/event-dispatcher: ~2.5
This package is auto-updated.
Last update: 2024-10-25 08:07:34 UTC
README
About
A PHP client for the Data Management System Datatheke (http://www.datatheke.com/)
Install
Using composer
composer require 'datatheke/client' '~0.2.0'
Usage
<?php // src/test.php $loader = require __DIR__.'/../vendor/autoload.php'; $client = new Datatheke\Api\Client(); $client->setCredentials(MY_USERNAME, MY_PASSWORD); // or $client->setTokenData('ACCESS_TOKEN', 'REFRESH_TOKEN', 'EXPIRES_TIMESTAMP'); $libraries = $client->getLibraries(); foreach ($libraries['items'] as $library) { echo $library['name']."\n"; }