This software stopped working after 30 July 2016 when Habitica's deprecated API v2 was removed.

Information about the API change can be found at Application Programming Interface.


Description

Call multiple operations to interact with your Habitica account.

Usage

Commands: Get user status User user = client.getUser(); Create a new task Task task = client.createTask(new Task("from the api!", Task.Type.todo)); Get all tasks Collection<Task> tasks = client.getTasks(); Get all todo tasks Collection<Task> tasks = client.getTasks(Task.Type.todo); Get a task by id Task task = client.getTask("bc8b6db0-2605-4943-bf18-114f628bb287"); Update a task Task task = client.updateTask("bc8b6db0-2605-4943-bf18-114f628bb287", new Task("from the api! EDITED", Task.Type.daily, 2, "notes EDITED", Task.Status.INCOMPLETE, Task.Direction.up)); Delete a task client.deleteTask("bc8b6db0-2605-4943-bf18-114f628bb287");

See Github for more on usage.

Community content is available under CC-BY-SA unless otherwise noted.