Module: Zoomus::Actions::User

Included in:
Client
Defined in:
lib/zoomus/actions/user.rb

Instance Method Summary collapse

Instance Method Details

#user_create(*args) ⇒ Object



10
11
12
13
14
# File 'lib/zoomus/actions/user.rb', line 10

def user_create(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:type, :email], options)
  Utils.parse_response self.class.post('/user/create', :query => options)
end

#user_custcreate(*args) ⇒ Object



22
23
24
25
26
# File 'lib/zoomus/actions/user.rb', line 22

def user_custcreate(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:type, :email], options)
  Utils.parse_response self.class.post('/user/custcreate', :query => options)
end

#user_delete(*args) ⇒ Object



16
17
18
19
20
# File 'lib/zoomus/actions/user.rb', line 16

def user_delete(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:id], options)
  Utils.parse_response self.class.post('/user/delete', :query => options)
end

#user_get(*args) ⇒ Object



34
35
36
37
38
# File 'lib/zoomus/actions/user.rb', line 34

def user_get(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:id], options)
  Utils.parse_response self.class.post('/user/get', :query => options)
end

#user_getbyemail(*args) ⇒ Object



40
41
42
43
44
# File 'lib/zoomus/actions/user.rb', line 40

def user_getbyemail(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:email, :login_type], options)
  Utils.parse_response self.class.post('/user/getbyemail', :query => options)
end

#user_list(*args) ⇒ Object



5
6
7
8
# File 'lib/zoomus/actions/user.rb', line 5

def user_list(*args)
  options = Utils.extract_options!(args)
  Utils.parse_response self.class.post('/user/list', :query => options)
end

#user_update(*args) ⇒ Object



28
29
30
31
32
# File 'lib/zoomus/actions/user.rb', line 28

def user_update(*args)
  options = Utils.extract_options!(args)
  Utils.require_params([:id], options)
  Utils.parse_response self.class.post('/user/update', :query => options)
end