stounhandj/yandex-music-api
Composer 安装命令:
composer require stounhandj/yandex-music-api
包简介
README 文档
README
Not an official package for working with the Yandex API.
Installation
$ composer require stounhandj/yandex-music-api
Or
{
"require": {
"stounhandj/yandex-music-api": "^0.5.2"
}
}
Example get likes tracks
use StounhandJ\YandexMusicApi\Client; $token = "AQAAAAANDd5rMAG1XnIKIEVVMGV4ibf8kw3FeA1"; $client = new Client($token); foreach ($client->getLikesTracks() as $track){ echo $track->title; }
Example of downloading the first track from the album you like
use StounhandJ\YandexMusicApi\Client; $token = "AQAAAAANDd5rMAG1XnIKIEVVMGV4ibf8kw3FeA1"; $client = new Client($token); $likesAlbum = $client->getLikesAlbums()[0]; $firstTrack = $likesAlbum->getTracks()[0]; $result = $firstTrack->downloadTrack("test.mp3");
统计信息
- 总下载量: 99
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-10