Sha256: 36fef03023f9c0050db87577ba37c3963579a757b0de3fff9b1b41bc7819c483

Contents?: true

Size: 304 Bytes

Versions: 1

Compression:

Stored size: 304 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
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
discourse_api-0.3.6 lib/discourse_api/api/badges.rb