Class: CiscoWebex::Journey

Inherits:
ContactCenter show all
Defined in:
lib/CC/Journey/Journey.rb

Instance Method Summary collapse

Methods inherited from ContactCenter

#address_books, #agent_profiles, #agents, #auxiliary_codes, #captures, #dial_plans, #entry_point_mappings, #entry_points, #journey, #multimedia_profiles, #my_org, #outbound_ani, #queues, #sites, #skill_profiles, #skills, #subscriptions, #tasks, #teams, #user_profiles, #users

Constructor Details

#initialize(token = nil, org_id = nil) ⇒ Journey

Returns a new instance of Journey.



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

def initialize(token=nil, org_id=nil)
	if token == nil || org_id == nil
		STDERR.puts "Must provde token and org_idwhen initiating CiscoWebex::CC::Journey"
		return false
	else 
		@org_id = org_id
		@auth_token = token

		@actions = Actions.new(@auth_token, @org_id)
		@events = JourneyEvents.new(@auth_token, @org_id)
		@identities = Identities.new(@auth_token, @org_id)
		@aliases = Aliases.new(@auth_token, @org_id)
		@profile_views = ProfileViews.new(@auth_token, @org_id)
		@reports = Reports.new(@auth_token, @org_id)
		@streams = Streams.new(@auth_token, @org_id)
		@views = Views.new(@auth_token, @org_id)
	end
end

Instance Method Details

#actionsObject



51
52
53
# File 'lib/CC/Journey/Journey.rb', line 51

def actions()
	return @actions
end

#aliasesObject



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

def aliases()
	return @aliases
end

#eventsObject



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

def events()
	return @events
end

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

access to REST API



32
33
34
# File 'lib/CC/Journey/Journey.rb', line 32

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

#head(uri, params = nil) ⇒ Object

access to REST API



37
38
39
# File 'lib/CC/Journey/Journey.rb', line 37

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

#identitiesObject



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

def identities()
	return @identities
end

#post(uri, params = nil) ⇒ Object

access to REST API



42
43
44
# File 'lib/CC/Journey/Journey.rb', line 42

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

#profile_viewsObject



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

def profile_views()
	return @profile_views
end

#put(uri, params = nil) ⇒ Object

access to REST API



47
48
49
# File 'lib/CC/Journey/Journey.rb', line 47

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

#reportsObject



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

def reports()
	return @reports
end

#streamsObject



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

def streams()
	return @streams
end

#thisObject



27
28
29
# File 'lib/CC/Journey/Journey.rb', line 27

def this()
	puts "CiscoWebex::CC::Journey - Org:#{@org_id}"
end

#viewsObject



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

def views()
	return @views
end