Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)