https://github.com/rryam/umerokit
Use last.fm in your Apple apps.
https://github.com/rryam/umerokit
ios lastfm lastfm-api macos swift swift-package-manager tvos watchos
Last synced: 3 months ago
JSON representation
Use last.fm in your Apple apps.
- Host: GitHub
- URL: https://github.com/rryam/umerokit
- Owner: rryam
- License: mit
- Created: 2022-12-27T12:26:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-09T15:12:45.000Z (5 months ago)
- Last Synced: 2025-04-30T05:04:21.102Z (3 months ago)
- Topics: ios, lastfm, lastfm-api, macos, swift, swift-package-manager, tvos, watchos
- Language: Swift
- Homepage: https://rryam.github.io/UmeroKit/documentation/umerokit/
- Size: 1.44 MB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# UmeroKit
Easily use Last.fm in your apps.
![]()
## Quickstart
Get started by getting the API key from last.fm and using the following method to configure UmeroKit:
```swift
UmeroKit.configure(withAPIKey: "YOUR_LASTFM_API_KEY")
```Then you can easily use the methods to fetch tags, albums, artists, charts with the default instance of UmeroKit, `Umero`. Directly call the methods on this instance:
```swift
var artists: [UArtist] = []UmeroKit.configure(withAPIKey: apiKey)
let chart = try await Umero.topChartArtists()
self.artists = chart.artists
let tags = try await Umero.topChartTags()
print(tags)
```