qiita-swift 用于 Swift 的 Qiita API v2 客户端例子
let client = Qiita.Client ( accessToken : \" ... \" )
let client = Qiita.Client(accessToken: \"...\", baseURLString: \"http://*.qiita.com/api/v2\")
let parameters = [ \"query\" : \"user:naoty_k\" ]
let parameters = [\"query\": \"user:naoty_k\"]
let request = client.getItems(parameters: parameters)
let request = client.getItems(parameters: parameters)
request.onComplete { items in // ... }
request.onComplete { items in
// handle items
}
request.onError { error in // ... }
request.onError { error in
// handle error
}
request.resume()
request.resume()
暂无评论