Skip to content

Swift Package Manager dependency for Bluesky API bindings.

License

Notifications You must be signed in to change notification settings

christiandeange/BlueskyAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.