Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ishkawa committed Feb 18, 2015
1 parent 8760a5a commit a982800
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
APIKit
======

[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)

protocol set for building type safe web API client in Swift.

## Example
Expand All @@ -12,6 +14,7 @@ GitHub.sendRequest(request) { response in
switch response {
case .Success(let box):
self.repositories = box.unbox // type of response object is inferred by request
self.tableView?.reloadData()

case .Failure(let box):
let alertController = UIAlertController(title: "Error", message: box.unbox.localizedDescription, preferredStyle: .Alert)
Expand Down

0 comments on commit a982800

Please sign in to comment.