2022-08-17 15:01:01 -06:00
2022-08-17 14:13:15 -06:00
2022-08-16 23:39:51 -06:00
2022-08-15 20:37:47 -06:00
2022-08-08 14:23:59 -06:00
2022-08-17 15:01:01 -06:00

Jellyfin SDK for Swift

A Swift async/await SDK for Jellyfin, generated using CreateAPI.

Usage

The JellyfinClient object is a wrapper around Get's APIClient to provide basic functionality for interfacing with a Jellyfin server, notably injecting required headers for each request. JellyfinClient uses the same API as APIClient for making all requests. You are still able to use any networking stack you desire by using the provided Entities and Paths.

let jellyfinClient = JellyfinClient(configuration: configuration)

// Provided method on JellyfinClient
let response = jellyfinClient.signIn(username: "jelly", password: "fin")

Documentation

  • TODO: host .doccarchive on GH Pages

Generation

Generating the Entities, Extensions, and Paths with CreateAPI is provided as an Xcode command plugin.

  1. Download the latest Jellyfin schema
  2. Move the schema to /Sources
  3. Delete the current Entities, Extensions, and Paths folders
  4. Run the following command in the repo directory:
swift package --allow-writing-to-package-directory generate-api
  1. New Entities, Extensions, and Paths folders should be generated within the package.
Description
Swift SDK for Jellyfin
Readme 8.8 MiB
Languages
Swift 100%