Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 2 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 (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-01T13:25:54.000Z (11 months ago)
- Last Synced: 2024-11-26T18:48:16.735Z (about 2 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.43 MB
- Stars: 6
- Watchers: 1
- 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)
```