velir_kaltura-ruby 0.3.7 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/README.rdoc +1 -1
- data/VERSION.yml +3 -3
- data/lib/kaltura/filter/access_control_filter.rb +20 -0
- data/lib/kaltura/filter/base_entry_filter.rb +115 -0
- data/lib/kaltura/filter/base_filter.rb +7 -0
- data/lib/kaltura/filter/base_job_filter.rb +28 -0
- data/lib/kaltura/filter/batch_job_filter.rb +54 -0
- data/lib/kaltura/filter/category_filter.rb +23 -0
- data/lib/kaltura/filter/control_panel_command_filter.rb +39 -0
- data/lib/kaltura/filter/conversion_profile_filter.rb +12 -0
- data/lib/kaltura/filter/document_entry_filter.rb +12 -0
- data/lib/kaltura/filter/file_sync_filter.rb +93 -0
- data/lib/kaltura/filter/flavor_params_filter.rb +11 -0
- data/lib/kaltura/filter/flavor_params_output_filter.rb +14 -0
- data/lib/kaltura/filter/media_entry_filter.rb +22 -0
- data/lib/kaltura/filter/media_entry_filter_for_playlist.rb +11 -0
- data/lib/kaltura/filter/partner_filter.rb +22 -0
- data/lib/kaltura/filter/playable_entry_filter.rb +40 -0
- data/lib/kaltura/filter/report_input_filter.rb +25 -0
- data/lib/kaltura/filter/system_partner_usage_filter.rb +15 -0
- data/lib/kaltura/filter/ui_conf_filter.rb +40 -0
- data/lib/kaltura/filter/user_filter.rb +27 -0
- data/lib/kaltura/filter/widget_filter.rb +37 -0
- data/lib/kaltura/filter.rb +27 -623
- data/lib/kaltura/kaltura_client.rb +61 -61
- data/lib/kaltura/kaltura_client_base.rb +18 -17
- data/lib/kaltura/response.rb +4 -4
- data/lib/kaltura/service/access_control_service.rb +38 -0
- data/lib/kaltura/service/admin_user_service.rb +28 -0
- data/lib/kaltura/service/base_entry_service.rb +120 -0
- data/lib/kaltura/service/base_service.rb +20 -0
- data/lib/kaltura/service/bulk_upload_service.rb +25 -0
- data/lib/kaltura/service/category_service.rb +37 -0
- data/lib/kaltura/service/conversion_profile_service.rb +38 -0
- data/lib/kaltura/service/data_service.rb +39 -0
- data/lib/kaltura/service/email_ingestion_profile_service.rb +47 -0
- data/lib/kaltura/service/flavor_asset_service.rb +55 -0
- data/lib/kaltura/service/flavor_params_service.rb +44 -0
- data/lib/kaltura/service/live_stream_service.rb +53 -0
- data/lib/kaltura/service/media_service.rb +149 -0
- data/lib/kaltura/service/mixing_service.rb +86 -0
- data/lib/kaltura/service/notification_service.rb +13 -0
- data/lib/kaltura/service/partner_service.rb +41 -0
- data/lib/kaltura/service/playlist_service.rb +73 -0
- data/lib/kaltura/service/report_service.rb +47 -0
- data/lib/kaltura/service/search_service.rb +34 -0
- data/lib/kaltura/service/session_service.rb +24 -0
- data/lib/kaltura/service/stats_service.rb +24 -0
- data/lib/kaltura/service/syndication_feed_service.rb +50 -0
- data/lib/kaltura/service/system_partner_service.rb +58 -0
- data/lib/kaltura/service/system_service.rb +11 -0
- data/lib/kaltura/service/system_user_service.rb +63 -0
- data/lib/kaltura/service/ui_conf_service.rb +51 -0
- data/lib/kaltura/service/upload_service.rb +18 -0
- data/lib/kaltura/service/user_service.rb +44 -0
- data/lib/kaltura/service/widget_service.rb +38 -0
- data/lib/kaltura/service/x_internal_service.rb +13 -0
- data/lib/kaltura/service.rb +32 -1295
- data/velir_kaltura-ruby.gemspec +53 -2
- metadata +56 -5
@@ -0,0 +1,86 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class MixingService < BaseService
|
4
|
+
|
5
|
+
def add(mix_entry)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'mixEntry', mix_entry)
|
8
|
+
perform_request('mixing','add',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(entry_id, version=-1)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'entryId', entry_id)
|
14
|
+
client.add_param(kparams, 'version', version)
|
15
|
+
perform_request('mixing','get',kparams,false)
|
16
|
+
end
|
17
|
+
|
18
|
+
def update(entry_id, mix_entry)
|
19
|
+
kparams = {}
|
20
|
+
client.add_param(kparams, 'entryId', entry_id)
|
21
|
+
client.add_param(kparams, 'mixEntry', mix_entry)
|
22
|
+
perform_request('mixing','update',kparams,false)
|
23
|
+
end
|
24
|
+
|
25
|
+
def delete(entry_id)
|
26
|
+
kparams = {}
|
27
|
+
client.add_param(kparams, 'entryId', entry_id)
|
28
|
+
perform_request('mixing','delete',kparams,false)
|
29
|
+
end
|
30
|
+
|
31
|
+
def list(filter=nil, pager=nil)
|
32
|
+
kparams = {}
|
33
|
+
client.add_param(kparams, 'filter', filter)
|
34
|
+
client.add_param(kparams, 'pager', pager)
|
35
|
+
perform_request('mixing','list',kparams,false)
|
36
|
+
end
|
37
|
+
|
38
|
+
def count(filter=nil)
|
39
|
+
kparams = {}
|
40
|
+
client.add_param(kparams, 'filter', filter)
|
41
|
+
perform_request('mixing','count',kparams,false)
|
42
|
+
end
|
43
|
+
|
44
|
+
def clone(entry_id)
|
45
|
+
kparams = {}
|
46
|
+
client.add_param(kparams, 'entryId', entry_id)
|
47
|
+
perform_request('mixing','clone',kparams,false)
|
48
|
+
end
|
49
|
+
|
50
|
+
def append_media_entry(mix_entry_id, media_entry_id)
|
51
|
+
kparams = {}
|
52
|
+
client.add_param(kparams, 'mixEntryId', mix_entry_id)
|
53
|
+
client.add_param(kparams, 'mediaEntryId', media_entry_id)
|
54
|
+
perform_request('mixing','appendMediaEntry',kparams,false)
|
55
|
+
end
|
56
|
+
|
57
|
+
def request_flattening(entry_id, file_format, version=-1)
|
58
|
+
kparams = {}
|
59
|
+
client.add_param(kparams, 'entryId', entry_id)
|
60
|
+
client.add_param(kparams, 'fileFormat', file_format)
|
61
|
+
client.add_param(kparams, 'version', version)
|
62
|
+
perform_request('mixing','requestFlattening',kparams,false)
|
63
|
+
end
|
64
|
+
|
65
|
+
def get_mixes_by_media_id(media_entry_id)
|
66
|
+
kparams = {}
|
67
|
+
client.add_param(kparams, 'mediaEntryId', media_entry_id)
|
68
|
+
perform_request('mixing','getMixesByMediaId',kparams,false)
|
69
|
+
end
|
70
|
+
|
71
|
+
def get_ready_media_entries(mix_id, version=-1)
|
72
|
+
kparams = {}
|
73
|
+
client.add_param(kparams, 'mixId', mix_id)
|
74
|
+
client.add_param(kparams, 'version', version)
|
75
|
+
perform_request('mixing','getReadyMediaEntries',kparams,false)
|
76
|
+
end
|
77
|
+
|
78
|
+
def anonymous_rank(entry_id, rank)
|
79
|
+
kparams = {}
|
80
|
+
client.add_param(kparams, 'entryId', entry_id)
|
81
|
+
client.add_param(kparams, 'rank', rank)
|
82
|
+
perform_request('mixing','anonymousRank',kparams,false)
|
83
|
+
end
|
84
|
+
end #class MixingService
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class NotificationService < BaseService
|
4
|
+
|
5
|
+
def get_client_notification(entry_id, type)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'entryId', entry_id)
|
8
|
+
client.add_param(kparams, 'type', type)
|
9
|
+
perform_request('notification','getClientNotification',kparams,false)
|
10
|
+
end
|
11
|
+
end #class NotificationService
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class PartnerService < BaseService
|
4
|
+
|
5
|
+
def register(partner, cms_password='')
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'partner', partner)
|
8
|
+
client.add_param(kparams, 'cmsPassword', cms_password)
|
9
|
+
perform_request('partner','register',kparams,false)
|
10
|
+
end
|
11
|
+
|
12
|
+
def update(partner, allow_empty=false)
|
13
|
+
kparams = {}
|
14
|
+
client.add_param(kparams, 'partner', partner)
|
15
|
+
client.add_param(kparams, 'allowEmpty', allow_empty)
|
16
|
+
perform_request('partner','update',kparams,false)
|
17
|
+
end
|
18
|
+
|
19
|
+
def get_secrets(partner_id, admin_email, cms_password)
|
20
|
+
kparams = {}
|
21
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
22
|
+
client.add_param(kparams, 'adminEmail', admin_email)
|
23
|
+
client.add_param(kparams, 'cmsPassword', cms_password)
|
24
|
+
perform_request('partner','getSecrets',kparams,false)
|
25
|
+
end
|
26
|
+
|
27
|
+
def get_info()
|
28
|
+
kparams = {}
|
29
|
+
perform_request('partner','getInfo',kparams,false)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_usage(year='', month=1, resolution='days')
|
33
|
+
kparams = {}
|
34
|
+
client.add_param(kparams, 'year', year)
|
35
|
+
client.add_param(kparams, 'month', month)
|
36
|
+
client.add_param(kparams, 'resolution', resolution)
|
37
|
+
perform_request('partner','getUsage',kparams,false)
|
38
|
+
end
|
39
|
+
end #class PartnerService
|
40
|
+
end
|
41
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class PlaylistService < BaseService
|
4
|
+
|
5
|
+
def add(playlist, update_stats=false)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'playlist', playlist)
|
8
|
+
client.add_param(kparams, 'updateStats', update_stats)
|
9
|
+
perform_request('playList','add',kparams,false)
|
10
|
+
end
|
11
|
+
|
12
|
+
def get(id, version=-1)
|
13
|
+
kparams = {}
|
14
|
+
client.add_param(kparams, 'id', id)
|
15
|
+
client.add_param(kparams, 'version', version)
|
16
|
+
perform_request('playList','get',kparams,false)
|
17
|
+
end
|
18
|
+
|
19
|
+
def update(id, playlist, update_stats=false)
|
20
|
+
kparams = {}
|
21
|
+
client.add_param(kparams, 'id', id)
|
22
|
+
client.add_param(kparams, 'playlist', playlist)
|
23
|
+
client.add_param(kparams, 'updateStats', update_stats)
|
24
|
+
perform_request('playList','update',kparams,false)
|
25
|
+
end
|
26
|
+
|
27
|
+
def delete(id)
|
28
|
+
kparams = {}
|
29
|
+
client.add_param(kparams, 'id', id)
|
30
|
+
perform_request('playList','delete',kparams,false)
|
31
|
+
end
|
32
|
+
|
33
|
+
def list(filter=nil, pager=nil)
|
34
|
+
kparams = {}
|
35
|
+
client.add_param(kparams, 'filter', filter)
|
36
|
+
client.add_param(kparams, 'pager', pager)
|
37
|
+
perform_request('playList','list',kparams,false)
|
38
|
+
end
|
39
|
+
|
40
|
+
def execute(id, detailed='')
|
41
|
+
kparams = {}
|
42
|
+
client.add_param(kparams, 'id', id)
|
43
|
+
client.add_param(kparams, 'detailed', detailed)
|
44
|
+
perform_request('playList','execute',kparams,false)
|
45
|
+
end
|
46
|
+
|
47
|
+
def execute_from_content(playlist_type, playlist_content, detailed='')
|
48
|
+
kparams = {}
|
49
|
+
client.add_param(kparams, 'playlistType', playlist_type)
|
50
|
+
client.add_param(kparams, 'playlistContent', playlist_content)
|
51
|
+
client.add_param(kparams, 'detailed', detailed)
|
52
|
+
perform_request('playList','executeFromContent',kparams,false)
|
53
|
+
end
|
54
|
+
|
55
|
+
def execute_from_filters(filters, total_results, detailed='')
|
56
|
+
kparams = {}
|
57
|
+
filters.each do |obj|
|
58
|
+
client.add_param(kparams, 'filters', obj)
|
59
|
+
end
|
60
|
+
client.add_param(kparams, 'totalResults', total_results)
|
61
|
+
client.add_param(kparams, 'detailed', detailed)
|
62
|
+
perform_request('playList','executeFromFilters',kparams)
|
63
|
+
end
|
64
|
+
|
65
|
+
def get_stats_from_content(playlist_type, playlist_content)
|
66
|
+
kparams = {}
|
67
|
+
client.add_param(kparams, 'playlistType', playlist_type)
|
68
|
+
client.add_param(kparams, 'playlistContent', playlist_content)
|
69
|
+
perform_request('playList','getStatsFromContent',kparams,false)
|
70
|
+
end
|
71
|
+
end #class PlaylistService
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class ReportService < BaseService
|
4
|
+
|
5
|
+
def get_graphs(report_type, report_input_filter, dimension='', object_ids='')
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'reportType', report_type)
|
8
|
+
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
9
|
+
client.add_param(kparams, 'dimension', dimension)
|
10
|
+
client.add_param(kparams, 'objectIds', object_ids)
|
11
|
+
perform_requesT('report','getGraphs',kparams,false)
|
12
|
+
end
|
13
|
+
|
14
|
+
def get_total(report_type, report_input_filter, object_ids='')
|
15
|
+
kparams = {}
|
16
|
+
client.add_param(kparams, 'reportType', report_type)
|
17
|
+
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
18
|
+
client.add_param(kparams, 'objectIds', object_ids)
|
19
|
+
perform_request('report','getTotal',kparams,false)
|
20
|
+
end
|
21
|
+
|
22
|
+
def get_table(report_type, report_input_filter, pager, order='', object_ids='')
|
23
|
+
kparams = {}
|
24
|
+
client.add_param(kparams, 'reportType', report_type)
|
25
|
+
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
26
|
+
client.add_param(kparams, 'pager', pager)
|
27
|
+
client.add_param(kparams, 'order', order)
|
28
|
+
client.add_param(kparams, 'objectIds', object_ids)
|
29
|
+
perform_request('report','getTable',kparams,false)
|
30
|
+
end
|
31
|
+
|
32
|
+
def get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension='', pager=nil, order='', object_ids='')
|
33
|
+
kparams = {}
|
34
|
+
client.add_param(kparams, 'reportTitle', report_title)
|
35
|
+
client.add_param(kparams, 'reportText', report_text)
|
36
|
+
client.add_param(kparams, 'headers', headers)
|
37
|
+
client.add_param(kparams, 'reportType', report_type)
|
38
|
+
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
39
|
+
client.add_param(kparams, 'dimension', dimension)
|
40
|
+
client.add_param(kparams, 'pager', pager)
|
41
|
+
client.add_param(kparams, 'order', order)
|
42
|
+
client.add_param(kparams, 'objectIds', object_ids)
|
43
|
+
perform_request('report','getUrlForReportAsCsv',kparams,false)
|
44
|
+
end
|
45
|
+
end #class ReportService
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class SearchService < BaseService
|
4
|
+
|
5
|
+
def search(search, pager=nil)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'search', search)
|
8
|
+
client.add_param(kparams, 'pager', pager)
|
9
|
+
perform_request('search','search',kparams,false)
|
10
|
+
end
|
11
|
+
|
12
|
+
def get_media_info(search_result)
|
13
|
+
kparams = {}
|
14
|
+
client.add_param(kparams, 'searchResult', search_result)
|
15
|
+
perform_request('search','getMediaInfo',kparams,false)
|
16
|
+
end
|
17
|
+
|
18
|
+
def search_url(media_type, url)
|
19
|
+
kparams = {}
|
20
|
+
client.add_param(kparams, 'mediaType', media_type)
|
21
|
+
client.add_param(kparams, 'url', url)
|
22
|
+
perform_request('search','searchUrl',kparams,false)
|
23
|
+
end
|
24
|
+
|
25
|
+
def external_login(search_source, user_name, password)
|
26
|
+
kparams = {}
|
27
|
+
client.add_param(kparams, 'searchSource', search_source)
|
28
|
+
client.add_param(kparams, 'userName', user_name)
|
29
|
+
client.add_param(kparams, 'password', password)
|
30
|
+
perform_request('search','externalLogin',kparams,false)
|
31
|
+
end
|
32
|
+
end #class SearchService
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class SessionService < BaseService
|
4
|
+
|
5
|
+
def start(secret, user_id='', type=0, partner_id=-1, expiry=86400, privileges='')
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'secret', secret)
|
8
|
+
client.add_param(kparams, 'userId', user_id)
|
9
|
+
client.add_param(kparams, 'type', type)
|
10
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
11
|
+
client.add_param(kparams, 'expiry', expiry)
|
12
|
+
client.add_param(kparams, 'privileges', privileges)
|
13
|
+
perform_request('session','start',kparams,false)
|
14
|
+
end
|
15
|
+
|
16
|
+
def start_widget_session(widget_id, expiry=86400)
|
17
|
+
kparams = {}
|
18
|
+
client.add_param(kparams, 'widgetId', widget_id)
|
19
|
+
client.add_param(kparams, 'expiry', expiry)
|
20
|
+
perform_request('session','startWidgetSession',kparams,false)
|
21
|
+
end
|
22
|
+
end #class SessionService
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class StatsService < BaseService
|
4
|
+
|
5
|
+
def collect(event)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'event', event)
|
8
|
+
perform_request('stats','collect',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def kmc_collect(kmc_event)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'kmcEvent', kmc_event)
|
14
|
+
perform_request('stats','kmcCollect',kparams,false)
|
15
|
+
end
|
16
|
+
|
17
|
+
def report_kce_error(kaltura_ce_error)
|
18
|
+
kparams = {}
|
19
|
+
client.add_param(kparams, 'kalturaCEError', kaltura_ce_error)
|
20
|
+
perform_request('stats','reportKceError',kparams,false)
|
21
|
+
end
|
22
|
+
end #class StatsService
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class SyndicationFeedService < BaseService
|
4
|
+
|
5
|
+
def add(syndication_feed)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'syndicationFeed', syndication_feed)
|
8
|
+
perform_request('syndicationFeed','add',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(id)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'id', id)
|
14
|
+
perform_request('syndicationFeed','get',kparams,false)
|
15
|
+
end
|
16
|
+
|
17
|
+
def update(id, syndication_feed)
|
18
|
+
kparams = {}
|
19
|
+
client.add_param(kparams, 'id', id)
|
20
|
+
client.add_param(kparams, 'syndicationFeed', syndication_feed)
|
21
|
+
perform_request('syndicationFeed','update',kparams,false)
|
22
|
+
end
|
23
|
+
|
24
|
+
def delete(id)
|
25
|
+
kparams = {}
|
26
|
+
client.add_param(kparams, 'id', id)
|
27
|
+
perform_request('syndicationFeed','delete',kparams,false)
|
28
|
+
end
|
29
|
+
|
30
|
+
def list(filter=nil, pager=nil)
|
31
|
+
kparams = {}
|
32
|
+
client.add_param(kparams, 'filter', filter)
|
33
|
+
client.add_param(kparams, 'pager', pager)
|
34
|
+
perform_request('syndicationFeed','list',kparams,false)
|
35
|
+
end
|
36
|
+
|
37
|
+
def get_entry_count(feed_id)
|
38
|
+
kparams = {}
|
39
|
+
client.add_param(kparams, 'feedId', feed_id)
|
40
|
+
perform_request('syndicationFeed','getEntryCount',kparams,false)
|
41
|
+
end
|
42
|
+
|
43
|
+
def request_conversion(feed_id)
|
44
|
+
kparams = {}
|
45
|
+
client.add_param(kparams, 'feedId', feed_id)
|
46
|
+
perform_request('syndicationFeed','requestConversion',kparams,false)
|
47
|
+
end
|
48
|
+
end #class SyndicationFeedService
|
49
|
+
end
|
50
|
+
end
|
@@ -0,0 +1,58 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class SystemPartnerService < BaseService
|
4
|
+
|
5
|
+
def get(partner_id)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
8
|
+
perform_request('systemPartner','get',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def get_usage(partner_filter=nil, usage_filter=nil, pager=nil)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'partnerFilter', partner_filter)
|
14
|
+
client.add_param(kparams, 'usageFilter', usage_filter)
|
15
|
+
client.add_param(kparams, 'pager', pager)
|
16
|
+
perform_request('systemPartner','getUsage',kparams,false)
|
17
|
+
end
|
18
|
+
|
19
|
+
def list(filter=nil, pager=nil)
|
20
|
+
kparams = {}
|
21
|
+
client.add_param(kparams, 'filter', filter)
|
22
|
+
client.add_param(kparams, 'pager', pager)
|
23
|
+
perform_request('systemPartner','list',kparams,false)
|
24
|
+
end
|
25
|
+
|
26
|
+
def update_status(partner_id, status)
|
27
|
+
kparams = {}
|
28
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
29
|
+
client.add_param(kparams, 'status', status)
|
30
|
+
perform_request('systemPartner','updateStatus',kparams,false)
|
31
|
+
end
|
32
|
+
|
33
|
+
def get_admin_session(partner_id)
|
34
|
+
kparams = {}
|
35
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
36
|
+
perform_request('systemPartner','getAdminSession',kparams,false)
|
37
|
+
end
|
38
|
+
|
39
|
+
def update_configuration(partner_id, configuration)
|
40
|
+
kparams = {}
|
41
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
42
|
+
client.add_param(kparams, 'configuration', configuration)
|
43
|
+
perform_request('systemPartner','updateConfiguration',kparams,false)
|
44
|
+
end
|
45
|
+
|
46
|
+
def get_configuration(partner_id)
|
47
|
+
kparams = {}
|
48
|
+
client.add_param(kparams, 'partnerId', partner_id)
|
49
|
+
perform_request('systemPartner','getConfiguration',kparams,false)
|
50
|
+
end
|
51
|
+
|
52
|
+
def get_packages()
|
53
|
+
kparams = {}
|
54
|
+
perform_request('systemPartner','getPackages',kparams,false)
|
55
|
+
end
|
56
|
+
end #class SystemPartnerService
|
57
|
+
end
|
58
|
+
end
|
@@ -0,0 +1,63 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class SystemUserService < BaseService
|
4
|
+
|
5
|
+
def verify_password(email, password)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'email', email)
|
8
|
+
client.add_param(kparams, 'password', password)
|
9
|
+
perform_request('systemUser','verifyPassword',kparams,false)
|
10
|
+
end
|
11
|
+
|
12
|
+
def generate_new_password()
|
13
|
+
kparams = {}
|
14
|
+
perform_request('systemUser','generateNewPassword',kparams,false)
|
15
|
+
end
|
16
|
+
|
17
|
+
def set_new_password(user_id, password)
|
18
|
+
kparams = {}
|
19
|
+
client.add_param(kparams, 'userId', user_id)
|
20
|
+
client.add_param(kparams, 'password', password)
|
21
|
+
perform_request('systemUser','setNewPassword',kparams,false)
|
22
|
+
end
|
23
|
+
|
24
|
+
def add(system_user)
|
25
|
+
kparams = {}
|
26
|
+
client.add_param(kparams, 'systemUser', system_user)
|
27
|
+
perform_request('systemUser','add',kparams,false)
|
28
|
+
end
|
29
|
+
|
30
|
+
def get(user_id)
|
31
|
+
kparams = {}
|
32
|
+
client.add_param(kparams, 'userId', user_id)
|
33
|
+
perform_request('systemUser','get',kparams,false)
|
34
|
+
end
|
35
|
+
|
36
|
+
def get_by_email(email)
|
37
|
+
kparams = {}
|
38
|
+
client.add_param(kparams, 'email', email)
|
39
|
+
perform_request('systemUser','getByEmail',kparams,false)
|
40
|
+
end
|
41
|
+
|
42
|
+
def update(user_id, system_user)
|
43
|
+
kparams = {}
|
44
|
+
client.add_param(kparams, 'userId', user_id)
|
45
|
+
client.add_param(kparams, 'systemUser', system_user)
|
46
|
+
perform_request('systemUser','update',kparams,false)
|
47
|
+
end
|
48
|
+
|
49
|
+
def delete(user_id)
|
50
|
+
kparams = {}
|
51
|
+
client.add_param(kparams, 'userId', user_id)
|
52
|
+
perform_request('systemUser','delete',kparams,false)
|
53
|
+
end
|
54
|
+
|
55
|
+
def list(filter=nil, pager=nil)
|
56
|
+
kparams = {}
|
57
|
+
client.add_param(kparams, 'filter', filter)
|
58
|
+
client.add_param(kparams, 'pager', pager)
|
59
|
+
perform_request('systemUser','list',kparams,false)
|
60
|
+
end
|
61
|
+
end #class SystemUserService
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class UiConfService < BaseService
|
4
|
+
|
5
|
+
def add(ui_conf)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'uiConf', ui_conf)
|
8
|
+
perform_request('uiConf','add',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def update(id, ui_conf)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'id', id)
|
14
|
+
client.add_param(kparams, 'uiConf', ui_conf)
|
15
|
+
perform_request('uiConf','update',kparams,false)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(id)
|
19
|
+
kparams = {}
|
20
|
+
client.add_param(kparams, 'id', id)
|
21
|
+
perform_request('uiConf','get',kparams,false)
|
22
|
+
end
|
23
|
+
|
24
|
+
def delete(id)
|
25
|
+
kparams = {}
|
26
|
+
client.add_param(kparams, 'id', id)
|
27
|
+
perform_request('uiConf','delete',kparams,false)
|
28
|
+
end
|
29
|
+
|
30
|
+
def clone(id)
|
31
|
+
kparams = {}
|
32
|
+
client.add_param(kparams, 'id', id)
|
33
|
+
perform_request('uiConf','clone',kparams,false)
|
34
|
+
end
|
35
|
+
|
36
|
+
def list_templates(filter=nil, pager=nil)
|
37
|
+
kparams = {}
|
38
|
+
client.add_param(kparams, 'filter', filter)
|
39
|
+
client.add_param(kparams, 'pager', pager)
|
40
|
+
perform_request('uiConf','listTemplates',kparams,false)
|
41
|
+
end
|
42
|
+
|
43
|
+
def list(filter=nil, pager=nil)
|
44
|
+
kparams = {}
|
45
|
+
client.add_param(kparams, 'filter', filter)
|
46
|
+
client.add_param(kparams, 'pager', pager)
|
47
|
+
perform_request('uiConf','list',kparams,false)
|
48
|
+
end
|
49
|
+
end #class UiConfService
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class UploadService < BaseService
|
4
|
+
|
5
|
+
def upload(file_data)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'fileData', file_data)
|
8
|
+
perform_request('upload','upload',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def get_uploaded_file_token_by_file_name(file_name)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'fileName', file_name)
|
14
|
+
perform_request('upload','getUploadedFileTokenByFileName',kparams,false)
|
15
|
+
end
|
16
|
+
end #class UploadService
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Kaltura
|
2
|
+
module Service
|
3
|
+
class UserService < BaseService
|
4
|
+
|
5
|
+
def add(user)
|
6
|
+
kparams = {}
|
7
|
+
client.add_param(kparams, 'user', user)
|
8
|
+
perform_request('user','add',kparams,false)
|
9
|
+
end
|
10
|
+
|
11
|
+
def update(user_id, user)
|
12
|
+
kparams = {}
|
13
|
+
client.add_param(kparams, 'userId', user_id)
|
14
|
+
client.add_param(kparams, 'user', user)
|
15
|
+
perform_request('user','update',kparams,false)
|
16
|
+
end
|
17
|
+
|
18
|
+
def get(user_id)
|
19
|
+
kparams = {}
|
20
|
+
client.add_param(kparams, 'userId', user_id)
|
21
|
+
perform_request('user','get',kparams,false)
|
22
|
+
end
|
23
|
+
|
24
|
+
def delete(user_id)
|
25
|
+
kparams = {}
|
26
|
+
client.add_param(kparams, 'userId', user_id)
|
27
|
+
perform_request('user','delete',kparams,false)
|
28
|
+
end
|
29
|
+
|
30
|
+
def list(filter=nil, pager=nil)
|
31
|
+
kparams = {}
|
32
|
+
client.add_param(kparams, 'filter', filter)
|
33
|
+
client.add_param(kparams, 'pager', pager)
|
34
|
+
perform_request('user','list',kparams,false)
|
35
|
+
end
|
36
|
+
|
37
|
+
def notify_ban(user_id)
|
38
|
+
kparams = {}
|
39
|
+
client.add_param(kparams, 'userId', user_id)
|
40
|
+
perform_request('user','notifyBan',kparams,false)
|
41
|
+
end
|
42
|
+
end #class UserService
|
43
|
+
end
|
44
|
+
end
|