Class: CiscoWebex::Invitees
Instance Method Summary
collapse
Methods inherited from Meetings
#control_status, #head, #invitees, #me, #meetings, #participants, #post, #put, #qualities, #registrations, #session_types, #templates, #transcripts
Constructor Details
#initialize(token = nil) ⇒ Invitees
initialize object with stored token
6
7
8
9
10
11
12
13
|
# File 'lib/Meetings/Invitees.rb', line 6
def initialize(token=nil)
if token == nil
STDERR.puts "Must provide API key for CiscoWebex::Meetings::Invitees"
return false
else
@auth_token = token if token
end
end
|
Instance Method Details
#create(params) ⇒ Object
34
35
36
|
# File 'lib/Meetings/Invitees.rb', line 34
def create(params)
return CiscoWebex::Rest.post(@auth_token, "/v1/meetingInvitees", params) rescue false
end
|
#delete(id) ⇒ Object
38
39
40
|
# File 'lib/Meetings/Invitees.rb', line 38
def delete(id)
return CiscoWebex::Rest.delete(@auth_token, "/v1/meetingInvitees/#{id}", {}) rescue false
end
|
#get(id, limit = 5000) ⇒ Object
19
20
21
|
# File 'lib/Meetings/Invitees.rb', line 19
def get(id, limit=5000)
return CiscoWebex::Rest.get(@auth_token, "/v1/meetingInvitees/#{id}", {}, limit) rescue false
end
|
#list(params = {}, limit = 5000) ⇒ Object
23
24
25
26
27
28
|
# File 'lib/Meetings/Invitees.rb', line 23
def list(params={}, limit=5000)
if params.class == String
params = { "meetingId"=> params }
end
return CiscoWebex::Rest.get(@auth_token, "/v1/meetingInvitees", params, limit) rescue false
end
|
#patch(id, params) ⇒ Object
46
47
48
49
|
# File 'lib/Meetings/Invitees.rb', line 46
def patch(id, params)
STDERR.puts "CiscoWebex::Meetings::Invitees.patch() - Metod not implemented"
return false
end
|
#search(meetings_id, params = {}) ⇒ Object
30
31
32
|
# File 'lib/Meetings/Invitees.rb', line 30
def search(meetings_id, params={})
return CiscoWebex::Toolbox.search(list(meeting_id), params)
end
|
#this ⇒ Object
15
16
17
|
# File 'lib/Meetings/Invitees.rb', line 15
def this()
puts "CiscoWebex::Meetings::Invitees"
end
|
#update(id, params) ⇒ Object
42
43
44
|
# File 'lib/Meetings/Invitees.rb', line 42
def update(id, params)
return CiscoWebex::Rest.put(@auth_token, "/v1/meetingInvitees/#{id}", params) rescue false
end
|