Fandom

HabitRPG Wiki

HabitRPG Java Client

741pages on
this wiki
Add New Page
Talk0 Share

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.

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.