Habitica

Habitica is a free habit and productivity app that treats your real life like a game. Habitica can help you achieve your goals to become healthy and happy.

Integrate the Habitica API with the Formatting API

Setup the Habitica API trigger to run a workflow which integrates with the Formatting API. Pipedream's integration platform allows you to integrate Habitica and Formatting remarkably fast. Free for developers.

[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
[Data] Parse JSON with the Formatting API

Parse a JSON string

 
Try it
[Date/Time] Add/Subtract Time with the Formatting API

Add or subtract time from a given input

 
Try it
[Date/Time] Compare Dates with the Formatting API

Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.

 
Try it
[Date/Time] Format with the Formatting API

Format a date string to another date string

 
Try it

Overview of Habitica

Habitica is a website and app that helps you form good habits and stick to
them. You can use the Habitica API to help you build applications that help
people form and stick to good habits.

Here are some examples of what you can build using the Habitica API:

  • An app that helps people track their water intake
  • An app that helps people track their steps
  • An app that helps people track their eating habits
  • An app that helps people track their sleeping habits
  • An app that helps people track their exercise habits

Connect Habitica

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    habitica: {
      type: "app",
      app: "habitica",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://habitica.com/api/v3/user`,
      headers: {
        "x-client": `3a326108-1895-4c23-874e-37668c75f2ad-Pipedream`,
        "x-api-user": `${this.habitica.$auth.user_id}`,
        "x-api-key": `${this.habitica.$auth.api_token}`,
      },
    })
  },
})

Connect Formatting

1
2
3
4
5
6
export default defineComponent({
  async run({ steps, $ }) {
    const text = ' Hello world! ';
    return text.trim()
  },
})