Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christiandeange/blueskyapi
Swift Package Manager dependency for Bluesky API bindings.
https://github.com/christiandeange/blueskyapi
at-protocol bluesky bluesky-api swift swift-package-manager
Last synced: about 2 months ago
JSON representation
Swift Package Manager dependency for Bluesky API bindings.
- Host: GitHub
- URL: https://github.com/christiandeange/blueskyapi
- Owner: christiandeange
- License: mit
- Created: 2024-04-14T06:07:04.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-11-10T08:50:06.000Z (about 2 months ago)
- Last Synced: 2024-11-10T09:29:57.334Z (about 2 months ago)
- Topics: at-protocol, bluesky, bluesky-api, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Swift Package Manager](https://img.shields.io/maven-central/v/sh.christian.ozone/bluesky?label=Swift%20Package%20Manager&color=green)
BlueskyAPI
==========### Overview
Swift bindings for Bluesky Social, powered by [Ozone](https://github.com/christiandeange/ozone). No relation to the moderation tools also named [Ozone](https://github.com/bluesky-social/ozone).
> **Warning**
>
> 🚧 🚧 🚧 Everything in here is very much a work-in-progress!
> The [upstream schemas](https://github.com/christiandeange/ozone/commits/main/bluesky/lexicons) 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
```swift
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](https://ozone.christian.sh).