tokenly/music-api-client
Composer 安装命令:
composer require tokenly/music-api-client
包简介
A client to call the Tokenly Music APIs
README 文档
README
Use this client to call the Tokenly Music API.
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();
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-05