Class: CiscoWebex::Captures

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

Instance Method Summary collapse

Methods inherited from ContactCenter

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

Constructor Details

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

initialize object with stored token



7
8
9
10
11
12
13
14
15
# File 'lib/CC/Captures.rb', line 7

def initialize(token=nil, org_id=nil)
	if token == nil || org_id == nil
		STDERR.puts "Must provide API key for CiscoWebex::ContactCenter::Capture"
		return false
	else
		@auth_token = token if token
		@org_id =  org_id
	end
end

Instance Method Details

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



21
22
23
24
25
26
27
# File 'lib/CC/Captures.rb', line 21

def activities(params={}, limit=5000)
	if ! params.has_key?('taskIds')
		STDERR.puts "Must provide taskIds for Capture query"
		return False
	end
	return CiscoWebex::RestCC.post(@auth_token, "/v1/captures/query", {}, limit)['data'] rescue false
end

#thisObject



17
18
19
# File 'lib/CC/Captures.rb', line 17

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