pfaffman
(Jay Pfaffman)
1
Slowing hacking away at a means to automate getting student info from Discourse into my grade book . . .
I’m trying to get a list of members with a given badge. I’ve tried things like
https://meta.discourse.org/badges/14/first-link.json
But that gives only information about the badge itself.
Another useful pull would be all of the badges earned by members of a given group.
fefrei
(Felix Freiberger)
2
You were close
Try /user_badges.json?badge_id=<id>
, for example https://meta.discourse.org/user_badges.json?badge_id=11.
The general approach to finding this is to get the Discourse page to load this while inspecting the traffic with your browser’s Dev tools or a proxy.
6 Likes
pfaffman
(Jay Pfaffman)
3
So obvious when you know the answer! Thanks.
I’ll poke at the dev tools some more.