https://github.com/mdiep/tentacle
A Swift framework for the GitHub API
https://github.com/mdiep/tentacle
github-api reactiveswift swift
Last synced: 7 months ago
JSON representation
A Swift framework for the GitHub API
- Host: GitHub
- URL: https://github.com/mdiep/tentacle
- Owner: mdiep
- License: mit
- Created: 2016-03-03T19:20:49.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T21:21:36.000Z (over 2 years ago)
- Last Synced: 2025-03-28T19:48:19.238Z (8 months ago)
- Topics: github-api, reactiveswift, swift
- Language: Swift
- Homepage:
- Size: 4.22 MB
- Stars: 254
- Watchers: 7
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tentacle [](https://raw.githubusercontent.com/mdiep/Tentacle/master/LICENSE.md)
A Swift framework for the GitHub API
```swift
let client = Client(.dotCom, token: "…")
let repo = Repository(owner: "ReactiveCocoa", name: "ReactiveCocoa")
let request = repo.release(forTag: "tag-name")
client
.execute(request)
.startWithResult { result in
switch result {
case let .success(response, release):
print("Downloaded release: \(release)")
case let .failure(error):
print("An error occurred: \(error)")
}
}
```
Tentacle is built with [ReactiveSwift](https://github.com/ReactiveCocoa/ReactiveSwift).
## License
Tentacle is available under the [MIT License](LICENSE.md)