https://github.com/altered-tech/swift-unifi-client
Unifi Client for the Early Access REST API, written in swift
https://github.com/altered-tech/swift-unifi-client
client swift swift6 unifi
Last synced: 9 months ago
JSON representation
Unifi Client for the Early Access REST API, written in swift
- Host: GitHub
- URL: https://github.com/altered-tech/swift-unifi-client
- Owner: Altered-Tech
- License: mit
- Created: 2024-11-11T00:00:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-09T06:02:19.000Z (over 1 year ago)
- Last Synced: 2025-03-06T06:36:31.791Z (over 1 year ago)
- Topics: client, swift, swift6, unifi
- Language: Swift
- Homepage:
- Size: 93.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Work in Progress
# Unifi Client
A swift client for the Unifi API.
Basing this on the Unifi API Documentation provided on their site: [unifi](https://developer.ui.com/unifi-api/gettingstarted/)
## Tests
There currently are no tests for the client. Still working through developing the client.
## Client
## Usage
```
let unifiClient = await UnifiClient(apikey: yourkey)
do {
guard let result = try await unifiClient.getHosts() else { return }
for host in response {
print(host.id!)
}
} catch {
print(error)
}
```