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
33
34
35
36
|
# File 'lib/sproutvideo/analytics.rb', line 33
def self.device_types(options={})
url = build_path("/stats/device_types", options)
get(url, options)
end
|
.domains(options = {}) ⇒ Object
13
14
15
16
|
# File 'lib/sproutvideo/analytics.rb', line 13
def self.domains(options={})
url = build_path("/stats/domains", options)
get(url, options)
end
|
.download_counts(options = {}) ⇒ Object
8
9
10
11
|
# File 'lib/sproutvideo/analytics.rb', line 8
def self.download_counts(options ={})
url = build_path("/stats/downloads", options)
get(url, options)
end
|
.engagement(options = {}) ⇒ Object
38
39
40
41
|
# File 'lib/sproutvideo/analytics.rb', line 38
def self.engagement(options={})
url = build_path("/stats/engagement", options)
get(url, options)
end
|
.engagement_sessions(video_id = nil, options = {}) ⇒ Object
43
44
45
46
47
48
49
50
|
# File 'lib/sproutvideo/analytics.rb', line 43
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
18
19
20
21
|
# File 'lib/sproutvideo/analytics.rb', line 18
def self.geo(options={})
url = build_path("/stats/geo", options)
get(url, options)
end
|
.live_stream_engagement(options = {}) ⇒ Object
52
53
54
55
56
57
58
59
|
# File 'lib/sproutvideo/analytics.rb', line 52
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
61
62
63
64
65
66
67
68
|
# File 'lib/sproutvideo/analytics.rb', line 61
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
78
79
80
|
# File 'lib/sproutvideo/analytics.rb', line 78
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
28
29
30
31
|
# File 'lib/sproutvideo/analytics.rb', line 28
def self.playback_types(options={})
url = build_path("/stats/playback_types", options)
get(url, options)
end
|
.popular_downloads(options = {}) ⇒ Object
74
75
76
|
# File 'lib/sproutvideo/analytics.rb', line 74
def self.popular_downloads(options={})
get('/stats/popular_downloads', options)
end
|
.popular_videos(options = {}) ⇒ Object
70
71
72
|
# File 'lib/sproutvideo/analytics.rb', line 70
def self.popular_videos(options={})
get("/stats/popular_videos", options)
end
|
.video_types(options = {}) ⇒ Object
23
24
25
26
|
# File 'lib/sproutvideo/analytics.rb', line 23
def self.video_types(options={})
url = build_path("/stats/video_types", options)
get(url, options)
end
|