CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.

AnnictAPIClient 0.0.1

AnnictAPIClient 0.0.1

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2017
SwiftSwift Version 3.0.2
SPMSupports SPM

Maintained by Alice Maruyama.



AnnictAPIClient.swift

Get anime works

let client = AnnictClient(accessToken: 'accessToken')
let request = AnnictAPI.SearchWorks()

client.send(request: request) { result in
    switch result {
    case let .success(response):
        for work in response.works
            print(work.title)
    case let .failure(error):
        print(error)
    }
}