Skip to content
This repository has been archived by the owner on Dec 26, 2018. It is now read-only.

vergecurrency/SwiftInsightClient

Repository files navigation

Travis (.org) Carthage Compatible GitHub Github Releases

SwiftInsightClient

Swift based Insight API client

Installation

Carthage

To integrate the SwiftInsightClient into your Xcode project using Carthage, specify it in your Cartfile:

github "vergecurrency/SwiftInsightClient" "master"

Documentation

Initialization

let urlSession = URLSession(configuration: .default)
let client = VIClient(urlSession: urlSession, endpoint: "https://blockexplorer.com/api")

client.getInfo { (info: VIInfo) in
    print(info?.blocks)
}

More coming soon...

License

SwiftInsightClient is available under the MIT license. See the LICENSE file for more info.