Class: CiscoWebex::Participants

Inherits:
Meetings
  • Object
show all
Defined in:
lib/Meetings/Participants.rb

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) ⇒ Participants

initialize object with stored token



6
7
8
9
10
11
12
13
# File 'lib/Meetings/Participants.rb', line 6

def initialize(token=nil)
	if token == nil
		STDERR.puts "Must provide API key for CiscoWebex::Meetings::Participants"
		return false
	else
		@auth_token = token if token
	end
end

Instance Method Details

#create(params) ⇒ Object



34
35
36
# File 'lib/Meetings/Participants.rb', line 34

def create(params)
	return CiscoWebex::Rest.post(@auth_token, "/v1/meetingParticipants/admit", params) rescue false
end

#delete(id) ⇒ Object



38
39
40
# File 'lib/Meetings/Participants.rb', line 38

def delete(id)
STDERR.puts "CiscoWebex::Meetings::Participants.patch() - Metod not implemented"
return false		end

#get(id, limit = 5000) ⇒ Object



19
20
21
# File 'lib/Meetings/Participants.rb', line 19

def get(id, limit=5000)
	return CiscoWebex::Rest.get(@auth_token, "/v1/meetingParticipants/#{id}", {}, limit) rescue false
end

#list(params = {}, limit = 5000) ⇒ Object



23
24
25
26
27
28
# File 'lib/Meetings/Participants.rb', line 23

def list(params={}, limit=5000)
	if params.class == String
		params = { "meetingId"=> params }
	end
	return CiscoWebex::Rest.get(@auth_token, "/v1/meetingParticipants", params, limit) rescue false
end

#patch(id, params) ⇒ Object



46
47
48
49
# File 'lib/Meetings/Participants.rb', line 46

def patch(id, params)
	STDERR.puts "CiscoWebex::Meetings::Participants.patch() - Metod not implemented"
	return false
end

#search(meetings_id, params = {}) ⇒ Object



30
31
32
# File 'lib/Meetings/Participants.rb', line 30

def search(meetings_id, params={})
	return CiscoWebex::Toolbox.search(list(meeting_id), params)
end

#thisObject



15
16
17
# File 'lib/Meetings/Participants.rb', line 15

def this()
	puts "CiscoWebex::Meetings::Participants"
end

#update(id, params) ⇒ Object



42
43
44
# File 'lib/Meetings/Participants.rb', line 42

def update(id, params)
	return CiscoWebex::Rest.put(@auth_token, "/v1/meetingParticipants/#{id}", params) rescue false
end