Class: CiscoWebex::Registrants
Instance Method Summary
collapse
-
#create(id, params) ⇒ Object
-
#delete(id, registrant_id) ⇒ Object
-
#get(id, registrant_id, limit = 5000) ⇒ Object
-
#initialize(token = nil) ⇒ Registrants
constructor
initialize object with stored token.
-
#list(params = {}, limit = 5000) ⇒ Object
-
#patch(id, registrant_id, params) ⇒ Object
-
#search(params = {}, limit = 5000) ⇒ Object
-
#this ⇒ Object
-
#update(id, registrant_id, params) ⇒ Object
#registrants
Methods inherited from Meetings
#control_status, #head, #invitees, #me, #meetings, #participants, #post, #put, #qualities, #registrations, #session_types, #templates, #transcripts
Constructor Details
#initialize(token = nil) ⇒ Registrants
initialize object with stored token
63
64
65
66
67
68
69
70
|
# File 'lib/Meetings/Registrations.rb', line 63
def initialize(token=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Meetings::Registrations::Registrants"
return false
else
@auth_token = token if token
end
end
|
Instance Method Details
#create(id, params) ⇒ Object
97
98
99
|
# File 'lib/Meetings/Registrations.rb', line 97
def create(id, params)
return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/#{id}/registrants", params, limit) rescue false
end
|
#delete(id, registrant_id) ⇒ Object
101
102
103
|
# File 'lib/Meetings/Registrations.rb', line 101
def delete(id, registrant_id)
return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/#{id}/registration/#{registrant_id}", params, limit) rescue false
end
|
#get(id, registrant_id, limit = 5000) ⇒ Object
76
77
78
|
# File 'lib/Meetings/Registrations.rb', line 76
def get(id, registrant_id, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/#{id}/registrants/#{registrant_id}", {}, limit) rescue false
end
|
#list(params = {}, limit = 5000) ⇒ Object
80
81
82
|
# File 'lib/Meetings/Registrations.rb', line 80
def list(params={}, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/meetings/#{id}/registrants", params, limit) rescue false
end
|
#patch(id, registrant_id, params) ⇒ Object
110
111
112
113
|
# File 'lib/Meetings/Registrations.rb', line 110
def patch(id, registrant_id, params)
STDERR.puts "CiscoWebex::Meetings::Registrations::Registrant.patch() - Metod not implemented"
return false
end
|
#search(params = {}, limit = 5000) ⇒ Object
84
85
86
87
88
89
90
91
92
93
94
95
|
# File 'lib/Meetings/Registrations.rb', line 84
def search(params={}, limit=5000)
if params.class == String
if params.includes?("@")
params = { "email"=> params }
elsif params.include?(" ")
params = { "firstName"=> params.split(" ")[0], "lastName"=> params.split(" ")[1] }
else
params = { "lastName"=> params }
end
end
return CiscoWebex::Toolbox.search(list(), params)
end
|
#this ⇒ Object
72
73
74
|
# File 'lib/Meetings/Registrations.rb', line 72
def this()
puts "CiscoWebex::Meetings::Registrations::Registrants"
end
|
#update(id, registrant_id, params) ⇒ Object
105
106
107
108
|
# File 'lib/Meetings/Registrations.rb', line 105
def update(id, registrant_id, params)
STDERR.puts "CiscoWebex::Meetings::Registrations::Registrant.update() - Metod not implemented"
return false
end
|