Discourse

Conversation platform

Integrate the Discourse API with the Formatting API

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

[Data] Convert JSON to String with Formatting API on New Posts from Discourse API
Discourse + Formatting
 
Try it
[Data] Convert JSON to String with Formatting API on New Topics from Discourse API
Discourse + Formatting
 
Try it
[Data] Convert JSON to String with Formatting API on New Users from Discourse API
Discourse + Formatting
 
Try it
[Data] Parse JSON with Formatting API on New Posts from Discourse API
Discourse + Formatting
 
Try it
[Data] Parse JSON with Formatting API on New Topics from Discourse API
Discourse + Formatting
 
Try it
New Posts (Instant) from the Discourse API

Emit new posts added to a topic in one of your chosen categories

 
Try it
New Topics (Instant) from the Discourse API

Emit new topics posted to your chosen categories

 
Try it
New Users (Instant) from the Discourse API

Emit new event every time a new user is created on your instance

 
Try it
Create Post with the Discourse API

Creates a post. See docs here

 
Try it
[Data] Convert JSON to String with the Formatting API

Convert an object to a JSON format string

 
Try it
Create Topic with the Discourse API

Creates a topic. See docs here

 
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

Overview of Discourse

The Discourse API empowers developers to interact programmatically with Discourse forums, allowing for a myriad of automations and integrations. Using Pipedream, you can harness this API for tasks such as syncing forum data with other platforms, automating user management, or triggering workflows based on forum activity. The key is in creatively coupling Discourse events with Pipedream's capabilities to streamline community interactions and administration.

Connect Discourse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discourse: {
      type: "app",
      app: "discourse",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://${this.discourse.$auth.domain}/admin/users/list/active.json`,
      headers: {
        "Api-Username": `${this.discourse.$auth.api_username}`,
        "Api-Key": `${this.discourse.$auth.api_key}`,
      },
    })
  },
})

Connect Formatting

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