Class: Kf5Api::User

Inherits:
Object
  • Object
show all
Extended by:
Base
Defined in:
lib/kf5_api/user.rb

Constant Summary collapse

ACTIONS_HASH =
{
  users_by_org: '/apiv2/organizations/%{id}/users'
}

Class Method Summary collapse

Methods included from Base

basic_auth, get

Class Method Details

.users_by_organization(org_id, query_params = {}) ⇒ Object

获取某个组织下的所有用户



13
14
15
16
# File 'lib/kf5_api/user.rb', line 13

def users_by_organization(org_id, query_params = {})
  action = format(ACTIONS_HASH[:users_by_org], id: org_id)
  get(action, query_params).parsed_response
end