Add it to your swift package using
.package(url: "https://github.com/standout/swift-ExtraBrainClient.git", from: "1.0.0"),
let client = ExtraBrainClient(username: "asd@example.com", password: "****")
client.tasks.find(id: 123) { result in
switch result {
case .failure(let error):
print(error.localizedDescription)
case .success(let task):
print(task.id)
print(task.title)
print(task.totalTime)
}
}
let client = ExtraBrainClient(username: "asd@example.com", password: "****")
client.tasks.find(id: 123) { result in
// ...
}