Class: Sproutvideo::Analytics
Class Method Summary
collapse
Methods inherited from Resource
api_key, base_url, delete, get, post, put, upload
Class Method Details
.device_types(options = {}) ⇒ Object
28
29
30
31
|
# File 'lib/sproutvideo/analytics.rb', line 28
def self.device_types(options={})
url = build_path("/stats/device_types", options)
get(url, options)
end
|
.domains(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/sproutvideo/analytics.rb', line 8
def self.domains(options={})
url = build_path("/stats/domains", options)
get(url, options)
end
|
.engagement(options = {}) ⇒ Object
33
34
35
36
|
# File 'lib/sproutvideo/analytics.rb', line 33
def self.engagement(options={})
url = build_path("/stats/engagement", options)
get(url, options)
end
|
.engagement_sessions(video_id = nil, options = {}) ⇒ Object
38
39
40
41
42
43
44
45
|
# File 'lib/sproutvideo/analytics.rb', line 38
def self.engagement_sessions(video_id=nil, options={})
if video_id.nil?
url = "/stats/engagement/sessions"
else
url = "/stats/engagement/#{video_id}/sessions"
end
get(url, options)
end
|
.geo(options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/sproutvideo/analytics.rb', line 13
def self.geo(options={})
url = build_path("/stats/geo", options)
get(url, options)
end
|
.live_stream_engagement(options = {}) ⇒ Object
47
48
49
50
51
52
53
54
|
# File 'lib/sproutvideo/analytics.rb', line 47
def self.live_stream_engagement(options={})
if options.include?(:live_stream_id)
url = build_path("/stats/engagement", options)
else
url = "/stats/live_streams/engagement"
end
get(url, options)
end
|
.live_stream_engagement_sessions(live_stream_id = nil, options = {}) ⇒ Object
56
57
58
59
60
61
62
63
|
# File 'lib/sproutvideo/analytics.rb', line 56
def self.live_stream_engagement_sessions(live_stream_id=nil, options={})
if live_stream_id.nil?
url = "/stats/live_streams/engagement/sessions"
else
url = "/stats/live_streams/#{live_stream_id}/engagement/sessions"
end
get(url, options)
end
|
.live_stream_overview(live_stream_id, options = {}) ⇒ Object
69
70
71
|
# File 'lib/sproutvideo/analytics.rb', line 69
def self.live_stream_overview(live_stream_id, options={})
get("/stats/live_streams/#{live_stream_id}/overview", options)
end
|
.play_counts(options = {}) ⇒ Object
3
4
5
6
|
# File 'lib/sproutvideo/analytics.rb', line 3
def self.play_counts(options={})
url = build_path("/stats/counts", options)
get(url, options)
end
|
.playback_types(options = {}) ⇒ Object
23
24
25
26
|
# File 'lib/sproutvideo/analytics.rb', line 23
def self.playback_types(options={})
url = build_path("/stats/playback_types", options)
get(url, options)
end
|
.popular_videos(options = {}) ⇒ Object
65
66
67
|
# File 'lib/sproutvideo/analytics.rb', line 65
def self.popular_videos(options={})
get("/stats/popular_videos", options)
end
|
.video_types(options = {}) ⇒ Object
18
19
20
21
|
# File 'lib/sproutvideo/analytics.rb', line 18
def self.video_types(options={})
url = build_path("/stats/video_types", options)
get(url, options)
end
|