Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 1.1 KB

README.md

File metadata and controls

33 lines (24 loc) · 1.1 KB

Swift Package Manager

BlueskyAPI

Overview

Swift bindings for Bluesky Social, powered by Ozone. No relation to the moderation tools also named Ozone.

Warning

🚧 🚧 🚧 Everything in here is very much a work-in-progress! The upstream schemas are still subject to breaking changes and may break at any moment if used in production code. Use at your own risk!

Installation

In Xcode, select File > Add Packages... and enter https://github.com/christiandeange/BlueskyAPI.

Sample Usage

let api = XrpcBlueskyApi()
let call = try await api.describeServer()
switch onEnum(of: call) {
case .success(let success):
    print(success.response)
case .failure(let failure):
    print(failure.response ?? failure.error ?? failure)
}

Docs are available at ozone.christian.sh.