Sha256: 1eb5621390f31dbddd90d76cb6c1073485429d812794eefa4221897a089edfba
Contents?: true
Size: 390 Bytes
Versions: 5
Compression:
Stored size: 390 Bytes
Contents
module DiscourseApi module API module Badges def badges response = get("/admin/badges.json") response.body end def user_badges(username) response = get("/users/#{username}/activity/badges.json") response.body['badges'] end def grant_user_badge(params={}) post("/user_badges", params) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems