Class: CiscoWebex::Streams
Instance Method Summary
collapse
Methods inherited from Journey
#actions, #aliases, #events, #head, #identities, #post, #profile_views, #put, #reports, #streams, #views
#address_books, #agent_profiles, #agents, #auxiliary_codes, #captures, #dial_plans, #entry_point_mappings, #entry_points, #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) ⇒ Streams
Returns a new instance of Streams.
6
7
8
9
10
11
12
13
14
|
# File 'lib/CC/Journey/Streams.rb', line 6
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::Stream"
return false
else
@org_id = org_id
@auth_token = token
end
end
|
Instance Method Details
#get(person_id) ⇒ Object
20
21
22
|
# File 'lib/CC/Journey/Streams.rb', line 20
def get(person_id)
return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/steams/#{person_id}")['data']
end
|
#historic ⇒ Object
33
34
35
|
# File 'lib/CC/Journey/Streams.rb', line 33
def historic()
return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/steams/historic")
end
|
#historic_person(person_id) ⇒ Object
37
38
39
|
# File 'lib/CC/Journey/Streams.rb', line 37
def historic_person(person_id)
return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/steams/#{person_id}/historic")
end
|
#list ⇒ Object
24
25
26
|
# File 'lib/CC/Journey/Streams.rb', line 24
def list()
return CiscoWebex::RestCC.get(@auth_token, "/v1/journey/steams")['data']
end
|
#search(params = {}) ⇒ Object
28
29
30
31
|
# File 'lib/CC/Journey/Streams.rb', line 28
def search(params={})
params = { "applicationName"=> params } if params.class == String
return CiscoWebex::Toolbox.search(list(), params)
end
|
#this ⇒ Object
16
17
18
|
# File 'lib/CC/Journey/Streams.rb', line 16
def this()
puts "CiscoWebex::CC::Journey::Stream - Org:#{@org_id}"
end
|