dev-master 2018-12-21 06:03 UTC

This package is not auto-updated.

Last update: 2024-05-19 09:01:25 UTC


This client provide an interface to reach Odayonetim API service.


You need to use composer for the installing

composer require hkulekci/odayonetim-api-client


Please check the examples folder for more information.

$configuration = \OdayonetimApiClient\ApiConfiguration::createFromArray([
    'base_uri' => '',
    'client_id' => 'myawesomeapp',
    'client_secret' => 'whisky'
$client = new \OdayonetimApiClient\HttpClient(
    new \GuzzleHttp\Client(['timeout'  => 5.0,]),

The client ready without token. You need to get token.

$result = $client->getPasswordAccessToken('test', 'demo')->getBody();
if (!isset($result['access_token'])) {
    echo 'Please provide correct information to get token' . PHP_EOL;
$access_token = $result['access_token'];

Now you can use all the methods to get data from API.