yuriyseriy / php-apple-music-api
PHP实现的Apple MusicKit API客户端
此软件包的官方仓库似乎已消失,因此该软件包已被冻结。
1.0.15
2017-08-25 14:05 UTC
Requires
- php: >=5.4
- ext-curl: *
- guzzlehttp/guzzle: ^6.2@dev
- monolog/monolog: ^1.23
README
商店
// Fetch a single storefront using its identifier. $storefronts = $client->storefronts()->get(':id'); // Fetch multiple storefronts. $storefronts = $client->storefronts()->get([':id', ':id', ':id']); // Fetch all the storefronts in alphabetical order. $storefronts = $client->storefronts()->all(':limit', ':offset');
专辑
// Fetch an album using its identifier. $albums = $client->albums()->get(':id'); // Fetch one or more albums using their identifiers. $albums = $client->albums()->get([':id', ':id', ':id']);
音乐视频
// Fetch a music video using its identifier. $musicVideos = $client->musicVideos()->get(':id'); // Fetch one or more music videos using their identifiers. $musicVideos = $client->musicVideos()->get([':id', ':id', ':id']);
播放列表
// Fetch a playlist using its identifier. $playlists = $client->playlists()->get(':id'); // Fetch one or more playlists using their identifiers. $playlists = $client->playlists()->get([':id', ':id', ':id']);
歌曲
// Fetch a song using its identifier. $songs = $client->songs()->get(':id'); // Fetch one or more songs using their identifiers. $songs = $client->songs()->get([':id', ':id', ':id']);
电台
// Fetch a station using its identifier. $stations = $client->stations()->get(':id'); // Fetch one or more stations using their identifiers. $stations = $client->stations()->get([':id', ':id', ':id']);
艺术家
// Fetch an artist using its identifier. $artists = $client->artists()->get(':id'); // Fetch one or more artists using their identifiers. $artists = $client->artists()->get([':id', ':id', ':id']);
内容策展人
// Fetch a curator using its identifier. $curators = $client->curators()->get(':id'); // Fetch one or more curators using their identifiers. $curators = $client->curators()->get([':id', ':id', ':id']);
活动
// Fetch an activity using its identifier. $activities = $client->activities()->get(':id'); // Fetch one or more activities using their identifiers. $activities = $client->activities()->get([':id', ':id', ':id']);
Apple内容策展人
// Fetch an Apple curator using its identifier. $appleCurators = $client->appleCurators()->get(':id'); // Fetch one or more Apple curators using their identifiers. $appleCurators = $client->appleCurators()->get([':id', ':id', ':id']);
排行榜
// Fetch one or more charts. $charts = $client->charts()->get(':types', ':chart', ':genre', ':limit', ':offset');
流派
// Fetch all genres for the current top charts. $genres = $client->genres()->top(':limit', ':offset'); // Fetch a genre using its identifier. $genres = $client->genres()->get(':id'); // Fetch one or more genres. $genres = $client->genres()->get([':id', ':id', ':id']);
搜索
// Search the catalog using a query. $search = $client->search()->query(':term', ':type', ':limit', ':offset'); // Fetch the search term results for a hint. $searchHints = $client->search()->hints(':term', ':types', ':limit');