Class: CiscoWebex::Meetings

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

Instance Method Summary collapse

Constructor Details

#initialize(token = nil) ⇒ Meetings

initialize object with stored token



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'lib/Meetings/Meetings.rb', line 7

def initialize(token=nil)
	if not token
		raise "Must provide API key"
	else
		@auth_token = token if token
		@org_id =  me() rescue nil# test token and store users profile
		if @org_id == nil
			raise "CiscoWebex::Meetings - Bearer token not valid"
		else
			@meetings = WebexMeetings.new(@auth_token)
			@templates = Templates.new(@auth_token)
			@session_types = SessionTypes.new(@auth_token)
			@control_status = ControlStatus.new(@auth_token)
			@registrations = Registrations.new(@auth_token)
			@invitees = Invitees.new(@auth_token)
			@participants = Participants.new(@auth_token)
			@qualities = Qualities.new(@auth_token)
			@transcripts = Transcripts.new(@auth_token)
		end
	end
end

Instance Method Details

#control_statusObject



67
68
69
# File 'lib/Meetings/Meetings.rb', line 67

def control_status()
	return @control_status
end

#get(uri, params = nil, limit = 50) ⇒ Object

access to REST API



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

def get(uri, params=nil, limit=50)
	return CiscoWebex::Rest.get(@auth_token, uri, params, limit)
end

#head(uri, params = nil) ⇒ Object

access to REST API



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

def head(uri, params=nil)
	return CiscoWebex::Rest.head(@auth_token, uri, params)
end

#inviteesObject



75
76
77
# File 'lib/Meetings/Meetings.rb', line 75

def invitees()
	return @invitees
end

#meObject

shortcut for getting the profile associated with the token



50
51
52
53
# File 'lib/Meetings/Meetings.rb', line 50

def me()
	return CiscoWebex::Rest.get(@auth_token, "/v1/people/me")['orgId'] rescue false

end

#meetingsObject



55
56
57
# File 'lib/Meetings/Meetings.rb', line 55

def meetings()
	return @meetings
end

#participantsObject



79
80
81
# File 'lib/Meetings/Meetings.rb', line 79

def participants()
	return @participants
end

#post(uri, params = nil) ⇒ Object

access to REST API



40
41
42
# File 'lib/Meetings/Meetings.rb', line 40

def post(uri, params=nil)
	return CiscoWebex::Rest.post(@auth_token, uri, params)
end

#put(uri, params = nil) ⇒ Object

access to REST API



45
46
47
# File 'lib/Meetings/Meetings.rb', line 45

def put(uri, params=nil)
	return CiscoWebex::Rest.put(@auth_token, uri, params)
end

#qualitiesObject



83
84
85
# File 'lib/Meetings/Meetings.rb', line 83

def qualities()
	return @qualities
end

#registrationsObject



71
72
73
# File 'lib/Meetings/Meetings.rb', line 71

def registrations()
	return @registrations
end

#session_typesObject



63
64
65
# File 'lib/Meetings/Meetings.rb', line 63

def session_types()
	return @session_types
end

#templatesObject



59
60
61
# File 'lib/Meetings/Meetings.rb', line 59

def templates()
	return @templates
end

#transcriptsObject



87
88
89
# File 'lib/Meetings/Meetings.rb', line 87

def transcripts()
	return @transcripts
end