A Swift framework for the GitHub API
Swift Other
Clone or download
mdiep Merge pull request #98 from mdiep/reactiveswift-4.0
Update ReactiveSwift to 4.0.0
Latest commit 34395dd Jul 18, 2018

README.md

Tentacle MIT license

A Swift framework for the GitHub API

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.

License

Tentacle is available under the MIT License