Swiftpack.co - Package - standout/swift-ExtraBrainClient

ExtraBrainClient

Swift Package manager

Add it to your swift package using

.package(url: "https://github.com/standout/swift-ExtraBrainClient.git", from: "1.0.0"),

TLDR examples

Get task

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)
    }
}

Documentation

Create a client with your username and password

let client = ExtraBrainClient(username: "asd@example.com", password: "****")

Tasks

Find task

client.tasks.find(id: 123) { result in
    // ...
}

Github

link
Stars: 0

Used By

Total: 0

Releases

- 2020-01-02 16:08:34

- 2019-10-21 15:31:20

- 2019-10-20 16:47:37

- 2019-10-19 14:28:19

Add client.customers.all