Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mdiep/tentacle
A Swift framework for the GitHub API
https://github.com/mdiep/tentacle
github-api reactiveswift swift
Last synced: 1 day 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T21:21:36.000Z (over 1 year ago)
- Last Synced: 2025-01-18T21:36:06.699Z (3 days ago)
- Topics: github-api, reactiveswift, swift
- Language: Swift
- Homepage:
- Size: 4.22 MB
- Stars: 253
- Watchers: 8
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Tentacle [![MIT license](https://img.shields.io/badge/license-MIT-lightgrey.svg)](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)