A client to call Tokenly APIs

v1.1.0 2018-09-18 13:05 UTC

This package is not auto-updated.

Last update: 2021-01-22 23:06:05 UTC


Use this client for various Tokenly APIs.

Build Status


Add the Laravel package via composer

composer require tokenly/api-client

Call a public API without a key

$api = new TokenlyAPI('');
$albums_array = $api->get('music/catalog/albums');

Call a protected API with a client id and secret key

$api = new TokenlyAPI('', new Tokenly\HmacAuth\Generator(), 'MY_CLIENT_ID', 'MY_CLIENT_SECRET');
$albums_array = $api->get('music/music/mysongs');