Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

README

        

# UmeroKit

Easily use Last.fm in your apps.


UmeroKit Logo

## 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)
```