Returns a single resource request definition, that after being executed will return
the resource of type R
Returns a single resource request definition, that after being executed will return
the resource of type R
Returns a multiple resources request definition, that after being executed will return
an HList
of resources, specified in phantom type parameter R
Returns a multiple resources request definition, that after being executed will return
an HList
of resources, specified in phantom type parameter R
Example usage:
api.getAll[Projects :: Labels :: Tasks :: HNil]
// will return List[Projects] :: List[Labels] :: List[Tasks] :: HNil upon execution
Syntax helpers are available for working with multiple resources response. After handling the API effect, you can call these methods on the result:
res.projects // returns List[Project] res.labels // returns List[Label] // ... // etc, but only for resources that were requested
For syntax helpers to be available, you should import the syntax toolkit, for example:
import ru.pavkin.todoist.api.dispatch.circe.default.syntax._
Doesn't allow to specify duplicate resources.
Returns a single command request definition, that when being executed
performs a supplied command: C
and returns command result of type R
.
Returns a single command request definition, that when being executed
performs a supplied command: C
and returns command result of type R
.
All command results are successors of ru.pavkin.todoist.api.core.model.TodoistCommandResult:
- For ru.pavkin.todoist.api.core.model.SimpleCommand returns ru.pavkin.todoist.api.core.model.CommandResult - For ru.pavkin.todoist.api.core.model.TempIdCommand returns ru.pavkin.todoist.api.core.model.TempIdCommandResult
Command to execute within the request
Returns a multiple commands request definition, that when being executed
performs all supplied commands
and returns an HList
of corresponding command results.
Returns a multiple commands request definition, that when being executed
performs all supplied commands
and returns an HList
of corresponding command results.
See AuthorizedAPI.perform method docs for command results details
Syntax helpers are available for multiple command results response. After handling the API effect, you can call these methods on the result:
res.resultFor(_0) // returns strictly typed result of the first command on the list res.resultFor(_1) // returns strictly typed result of the seconds command on the list // ... // and so on, but only for the amount of commands that was actually sent res.resultFor(uuid:UUID) // tries to find result for command with specific uuid // returns an Option[TodoistCommandResult]
For syntax helpers to be available, you should import the syntax toolkit, for example:
import ru.pavkin.todoist.api.dispatch.circe.default.syntax._
HList
of commands to execute