Sha256: 87235a978d40bdbbcd18a1fa5ca30ff317907de76c4856893d03cb34001d00aa

Contents?: true

Size: 1.24 KB

Versions: 6

Compression:

Stored size: 1.24 KB

Contents

module BacklogKit
  class Client
    module User
      def get_users
        get('users')
      end

      def get_user(user_id)
        get("users/#{user_id}")
      end

      def create_user(params = {})
        post('users', params)
      end

      def update_user(user_id, params = {})
        patch("users/#{user_id}", params)
      end

      def delete_user(user_id)
        delete("users/#{user_id}")
      end

      def get_myself
        get('users/myself')
      end

      def download_user_icon(user_id)
        get("users/#{user_id}/icon")
      end

      def get_user_activities(user_id, params = {})
        get("users/#{user_id}/activities", params)
      end

      def get_user_stars(user_id, params = {})
        get("users/#{user_id}/stars", params)
      end

      def get_user_star_count(user_id, params = {})
        get("users/#{user_id}/stars/count", params)
      end

      def get_recently_viewed_issues(params = {})
        get('users/myself/recentlyViewedIssues', params)
      end

      def get_recently_viewed_projects(params = {})
        get('users/myself/recentlyViewedProjects', params)
      end

      def get_recently_viewed_wikis(params = {})
        get('users/myself/recentlyViewedWikis', params)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
backlog_kit-0.12.1 lib/backlog_kit/client/user.rb
backlog_kit-0.12.0 lib/backlog_kit/client/user.rb
backlog_kit-0.11.0 lib/backlog_kit/client/user.rb
backlog_kit-0.10.0 lib/backlog_kit/client/user.rb
backlog_kit-0.9.0 lib/backlog_kit/client/user.rb
backlog_kit-0.8.0 lib/backlog_kit/client/user.rb