tokenly/api-client

A client to call Tokenly APIs

Maintainers

Details

github.com/tokenly/api-client

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

This package is not auto-updated.

Last update: 2020-09-18 20:56:31 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');