tokenly/api-client

A client to call Tokenly APIs

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

This package is not auto-updated.

Last update: 2024-12-21 21:25:22 UTC


README

Use this client for various Tokenly APIs.

Build Status

Installation

Add the Laravel package via composer

composer require tokenly/api-client

Call a public API without a key

$api = new TokenlyAPI('https://music.tokenly.com/api/v1');
$albums_array = $api->get('music/catalog/albums');

Call a protected API with a client id and secret key

$api = new TokenlyAPI('https://music.tokenly.com/api/v1', new Tokenly\HmacAuth\Generator(), 'MY_CLIENT_ID', 'MY_CLIENT_SECRET');
$albums_array = $api->get('music/music/mysongs');