Swiftpack.co - bdh777psu/DRLSetlistFM as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by bdh777psu.
bdh777psu/DRLSetlistFM 1.0.0
A Setlist.fm API Swift Package (Swagger-spec generated edition)
⭐️ 0
🕓 42 weeks ago
.package(url: "https://github.com/bdh777psu/DRLSetlistFM.git", from: "1.0.0")

DRLSetlistFM

Build Status

A Setlist.fm API Swift Package (Swagger-spec generated edition)

Description

This setlist.fm API Swift Package has been designed to give you easy access to setlist data in order to build fancy applications. This service provides methods to get both setlists and components of setlists such as artists, cities, countries or venues.

This is the Swagger-spec generated Swift code edition. For the alternative, go to the Apple swift-openapi-generator edition SwiftSetlistFM Swift Package.

Requirements

... Understand how setlist.fm works (the FAQ and Guidelines are good starting points), ... read this documentation carefully and ... apply for an API key (link for logged in users only) - if you're not a registered user yet, then register first (it's free).

Internationalization

Most of the featured methods honor the 'Accept-Language' header. This header is used for localizing cities and countries. The default language is English (en), but you can provide any of the languages Spanish (es), French (fr), German (de), Portuguese (pt), Turkish (tr), Italian (it) or Polish (pl).

Installation

DRLSetlistFM is available as a Swift Package. To install it, simply add the following line to your 'Package.swift' file:

.package(url: "https://github.com/bdh777psu/DRLSetlistFM", branch: "main"),

API Keys

API keys must be included in the request with the 'x-api-key' header.

Header Example

DRLSetlistFM.customHeaders = ["Accept": "application/json", "Accept-Language": "en", "x-api-key": "'yourkeyhere'"]

Usage Example

import DRLSetlistFM

SFMsearchSetlistsAPI.sfmSearchSetlistsGetSetlists(artistName: "The Beatles") { data, error in
    if error != nil {
        print(error.debugDescription)
    } else {
        if let safeData = data {
            print(safeData)
        }
    }
}

Author

Diogo Lessa

License

DRLSetlistFM is available under the MIT license.

GitHub

link
Stars: 0
Last commit: 4 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics