Hubot Integration

AI 生成的摘要

In the Hubot Integration discussion, user cpradio explores using Hubot to relay Discourse business data, such as new user signups and staff check-ins. The primary question raised was whether a Discourse API Key is required to access this data. User zogstrip clarified that an API key is only necessary for write operations and admin features, while data visible to anonymous users does not require one. Following this, cpradio confirmed the clarification and shared that they have already written several commands that function without API access, which are available on their GitHub repository.

Okay, so Hubot is my new friend. I’m really enjoying how easy it is to play around with it and I’m starting to see if it can be used for business purposes.

The idea:
Program a set of commands that would be useful from a business perspective that relays data from a Discourse instance. Think: Number of new user signups, Latest article posted, Staff Checkin details, etc.

So I’m still very much in the research phase at this point, and the biggest question I have is “Do I need to have a Discourse API Key on my instance to get this data?” Or more specifically, when is a Discourse API Key necessary? I’m thinking it would be ideal for this use case.

Edit:
For those interested, I’ve started writing scripts that do not require any API access and will eventually play around with ones that do require API access

Scripts are located at

5 个赞

You’ll need that API key for write-operations and admin features mostly. Whatever is visible to anonymous doesn’t require the API key.

1 个赞

Good to know :slight_smile: Thanks!

I’m just getting into it, but I’ve written a couple of commands already (that do not require any API usage)

1 个赞