Swiftpack.co - jellyfin/jellyfin-sdk-swift as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by jellyfin.
jellyfin/jellyfin-sdk-swift 0.3.3
Swift SDK for Jellyfin
⭐️ 37
🕓 9 weeks ago
iOS macOS watchOS tvOS macCatalyst
.package(url: "https://github.com/jellyfin/jellyfin-sdk-swift.git", from: "0.3.3")

Swift SDK Jellyfin

Swift SDK to work with Jellyfin servers.

Generated using CreateAPI

Documentation

Documentation is available on Swift Package Index.

Usage

JellyfinClient uses an underlying Get APIClient to provide basic functionality for interfacing with a Jellyfin server:

  • inject required Authorization header for every request
  • encoding/decoding of expected Date values
  • signIn for generating a session access token
  • signOut for revoking the current access token
// Create client instance
let jellyfinClient = JellyfinClient(configuration: configuration)

// Sign in user with credentials
let response = jellyfinClient.signIn(username: "jelly", password: "fin")

Alternatively, you can use your own network stack with the generated Entities and Paths.

Generation

# Download latest spec and run CreateAPI
$ make update

Alternatively, you can generate your own Swift Jellyfin SDK using CreateAPI or any other OpenAPI generator.

GitHub

link
Stars: 37
Last commit: 2 hours ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

0.3.3
9 weeks ago
  • Update to server 10.8.13
  • Removes local outdated docs since docs are now hosted on Swift Package Index

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