Releases: rryam/MusadoraKit
Version 1.3.0
New in this Release
You can now fetch an equivalent Apple Music catalog music item for a given music item in the user's library!
Usage:
let album = try await MusadoraKit.libraryAlbum(id: "l.uxuoDQh")
let catalogAlbum = try await album.catalog
print(catalogAlbum)
Version 1.2.0
New in this release
Added MusicAddResourcesRequest
and MusicDataPostRequest
.
Example usage to add a resource to the user's iCloud Music Library:
let request = MusicAddResourcesRequest(types: [.songs: ["1619816360"]])
let response = try await request.response()
if response {
print("SUCCESSFULLY ADDED OUT OF TIME BY THE WEEKND TO MY LIBRARY")
}
Version 1.1.0
New in this release
Add MusicCatalogResourcesRequest
and MusicLibraryResourcesRequest
to fetch multiple types in the same request.
Example usage:
MusicCatalogResourcesRequest:
let request = MusicCatalogResourcesRequest(types: [.songs: ["1456313177"], .albums: ["1531125029", "1575203352"]])
let response = try await request.response()
print(response.songs)
print(response.albums)
MusicLibraryResourcesRequest:
let request = MusicLibraryResourcesRequest(types: [.songs: ["i.pmzqzM0S2rl5N4L"], .playlists: ["p.PkxVBgps2zOdV3r"]])
let response = try await request.response()
print(response.songs)
print(response.playlists)
Version 1.0.2
New in this release
Made the libraries static instead of dynamic
Version 1.0.1
New in this release
Added recently played tracks and stations endpoints to MusicHistoryRequest
. Now you can fetch it like:
let stations = MusadoraKit.recentlyPlayedStations()
let tracks = MusadoraKit.recentlyPlayedTracks()
v1.0 Release!
After 9 months of working late nights and weekends, I am proud to release MusadoraKit, the ultimate companion to MusicKit.
It simplifies working with Apple Music API and MusicKit, and for you to easily integrate MusicKit into your app.
Looking forward to your feedback!
MusicHistoryRequest & MusicRecommendationRequest Enchancement
MusicHistoryRequest & MusicRecommendationRequest directly support accessing properties:
let request = MusicHistoryRequest(for: .recentlyPlayed)
let response = try await request.response()
print(response.albums)
and
let request = MusicRecommendationRequest()
let response = try await request.response()
guard let recommendation = response.items.first else { return }
print(recommendation.stations)
Enjoy! Thanks @aeip for bringing this enhancement to my attention!
More documentation
Now that all the custom structures are done for suggestions, recommendations, history and charts, I have added more documentation everywhere.
Very close to v1.0!
Catalog requests
Hi there!
Another release for the day. I have added Curator
, RadioShow
, Station
, and RecordLabel
. Some are available from iOS 15.4 onwards, so do note that.
Enjoy easily accessing the Apple Music catalog now!
Beta release
Hi there!
MusadoraKit is finally shaping up, and I am releasing it as a beta! While the custom structures need more love, all the catalog methods are ready to be used in production!
Let me know what you think!