UCLKit is a Swift wrapper for the UCL API. I have developed UCLKit so that Swift developers are able to forget about all the networking, JSON parsing, etc. and with one line, request all the data already fully parsed in object properties, and with the correct Data Types, from the simple String
and Int
to the more proprietary URL
and Date
.
- 100% native Swift 3 framework
- Fast and native networking
- Smart error handling
Just create a config instance with the token as initialization value:
let config = TokenConfiguration("12345")
After that, well, use it! :)
UCLKit(config).rooms() { response in
switch response {
case .Success(let rooms):
print("The first room's name is \(rooms[0].name!)")
case .Failure(let error):
print("Oops: \(error)")
}
}
If you need some more help with the framework you can open an issue above, I'll reply as soon as possible.
Tiago Ferreira | Twitter | Website
UCLKit Copyright (C) 2017 Tiago Ferreira
Please check the license file embed in this project for more details.