Look how easy it is to use:
pod 'Alamofire', '~> 3.0'
Login
let api = TTRSSApi(apiURL:"http://exsamplettrss.com/api/",delegate: self)
api.login("test",password: "test")
-- delegate
func success(data: NSDictionary?) {
print(data!["content"]!["session_id"])
}
func fail(error: NSError?) {
}
getHeadlines
let api = TTRSSApi(apiURL:"http://exsamplettrss.com/api/",delegate: nil)
let param = ["sid":"0337teoa49n55cbsfkrf3785q2","feed_id":"-4"] as [String:AnyObject]
api.getHeadlines(param, complete: { data , error in
print(data)
})
The project is licensed under the MIT license.