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!
In Xcode, select File > Add Packages... and enter https://github.com/christiandeange/BlueskyAPI.
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.