tokenly / api-client
A client to call Tokenly APIs
Installs: 9 349
Dependents: 7
Suggesters: 0
Security: 0
Stars: 0
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- rmccue/requests: ^1.7|dev-master
- tokenly/hmac-auth: ^1.0
Requires (Dev)
- phake/phake: ^2.3
- phpunit/phpunit: ~4
This package is not auto-updated.
Last update: 2024-11-23 20:48:01 UTC
README
Use this client for various Tokenly APIs.
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');