Can badges be awarded by an external site?

(Michael Congiusta) #1

I’m currently configuring my Discourse instance (loving it by the way - great job guys!) to go with my site. I’ve gotten SSO going successfully, and am now in the process of setting up the badge system. I’d like to award badges for actions completed on the site, with Discourse acting as a sort of hub for profiles and discussion.

I know there are APIs for things like topics, search etc but wasn’t sure how I’d go about this. Hoping someone can point me in the right direction!

(Erlend Sogge Heggen) #2

Wondering about this too. I noticed there’s a “Contributor” badge with the following description:

contributed an accepted pull request

Maybe it’s manual right now, but to automate that one would have to hook Discourse up with the GitHub API.

(Sam Saffron) #3

Its not manual:

In your opinion, what is the best wiki engine to be associated with discourse?
(Michael Congiusta) #4

Ah that’s great, thanks Sam!

It seems the only missing piece of the puzzle for what I’m trying to achieve is that I need to add a route for assigning a badge to a user immediately rather than having a job to do it once a day.

I’ve searched around a bit and can only find fairly old topics on this - what’s the best way for me to go about it?