library music-api-client
A client to call the Tokenly Music APIs
tokenly/music-api-client
A client to call the Tokenly Music APIs
- Tuesday, April 5, 2016
- by dweller
- Repository
- 3 Watchers
- 0 Stars
- 5 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 2 Versions
- 0 % Grown
Tokenly Music API client.
Use this client to call the Tokenly Music API., (*1)
, (*2)
Installation
Add the package via composer
composer require tokenly/music-client
Create and use the API client
// login with the public API client
$public_tokenly_api = new Tokenly\APIClient\TokenlyAPI('https://music-stage.tokenly.com/api/v1');
$public_music_api = new Tokenly\MusicClient\MusicAPI($public_tokenly_api);
$user_details = $public_music_api->login('myusername', 'mypassword');
$client_id = $user_details['apiToken'];
$secret_key = $user_details['apiSecretKey'];
// Once you have the client id and key, you can use the protected API client to call protected methods
$protected_tokenly_api = new Tokenly\APIClient\TokenlyAPI('https://music.tokenly.com/api/v1', new Tokenly\HmacAuth\Generator(), $client_id, $secret_key);
$protected_music_api = new Tokenly\MusicClient\MusicAPI($protected_tokenly_api);
$songs_array = $protected_music_api->getMySongs();
dev-master
9999999-dev
A client to call the Tokenly Music APIs
Sources
Download
MIT
The Requires
The Development Requires
api
client
music
tokenly
v1.0.0
1.0.0.0
A client to call the Tokenly Music APIs
Sources
Download
MIT
The Requires
The Development Requires
api
client
music
tokenly