kaltura_api 1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README +40 -0
- data/Rakefile +19 -0
- data/kaltura_api.yml +7 -0
- data/lib/kaltura_api.rb +31 -0
- data/lib/kaltura_client.rb +14450 -0
- data/lib/kaltura_client_base.rb +432 -0
- data/lib/kaltura_plugins/kaltura_abc_screeners_watermark_access_control_client_plugin.rb +37 -0
- data/lib/kaltura_plugins/kaltura_ad_cue_point_client_plugin.rb +108 -0
- data/lib/kaltura_plugins/kaltura_annotation_client_plugin.rb +237 -0
- data/lib/kaltura_plugins/kaltura_aspera_client_plugin.rb +61 -0
- data/lib/kaltura_plugins/kaltura_attachment_client_plugin.rb +227 -0
- data/lib/kaltura_plugins/kaltura_audit_client_plugin.rb +349 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_client_plugin.rb +109 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_csv_client_plugin.rb +55 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_filter_client_plugin.rb +46 -0
- data/lib/kaltura_plugins/kaltura_bulk_upload_xml_client_plugin.rb +40 -0
- data/lib/kaltura_plugins/kaltura_caption_client_plugin.rb +406 -0
- data/lib/kaltura_plugins/kaltura_caption_search_client_plugin.rb +138 -0
- data/lib/kaltura_plugins/kaltura_code_cue_point_client_plugin.rb +97 -0
- data/lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb +1717 -0
- data/lib/kaltura_plugins/kaltura_cue_point_client_plugin.rb +290 -0
- data/lib/kaltura_plugins/kaltura_document_client_plugin.rb +522 -0
- data/lib/kaltura_plugins/kaltura_drm_client_plugin.rb +204 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_client_plugin.rb +810 -0
- data/lib/kaltura_plugins/kaltura_drop_folder_xml_bulk_upload_client_plugin.rb +39 -0
- data/lib/kaltura_plugins/kaltura_email_notification_client_plugin.rb +276 -0
- data/lib/kaltura_plugins/kaltura_event_notification_client_plugin.rb +405 -0
- data/lib/kaltura_plugins/kaltura_external_media_client_plugin.rb +203 -0
- data/lib/kaltura_plugins/kaltura_file_sync_client_plugin.rb +151 -0
- data/lib/kaltura_plugins/kaltura_http_notification_client_plugin.rb +309 -0
- data/lib/kaltura_plugins/kaltura_kontiki_client_plugin.rb +72 -0
- data/lib/kaltura_plugins/kaltura_like_client_plugin.rb +82 -0
- data/lib/kaltura_plugins/kaltura_metadata_client_plugin.rb +788 -0
- data/lib/kaltura_plugins/kaltura_multi_centers_client_plugin.rb +45 -0
- data/lib/kaltura_plugins/kaltura_short_link_client_plugin.rb +231 -0
- data/lib/kaltura_plugins/kaltura_tag_search_client_plugin.rb +145 -0
- data/lib/kaltura_plugins/kaltura_var_console_client_plugin.rb +238 -0
- data/lib/kaltura_plugins/kaltura_velocix_client_plugin.rb +40 -0
- data/lib/kaltura_plugins/kaltura_virus_scan_client_plugin.rb +263 -0
- data/lib/kaltura_plugins/kaltura_webex_drop_folder_client_plugin.rb +121 -0
- data/lib/kaltura_plugins/kaltura_widevine_client_plugin.rb +195 -0
- data/test/access_control_service_test.rb +75 -0
- data/test/base_entry_service_test.rb +267 -0
- data/test/configuration_test.rb +178 -0
- data/test/cue_point_service_test.rb +67 -0
- data/test/data_service_test.rb +76 -0
- data/test/document_service_test.rb +41 -0
- data/test/media/test.mov +0 -0
- data/test/media/test.pdf +0 -0
- data/test/media/test.png +0 -0
- data/test/media/test.swf +0 -0
- data/test/media/test.wmv +0 -0
- data/test/media_service_test.rb +294 -0
- data/test/metadata_profile_service_test.rb +63 -0
- data/test/test_helper.rb +59 -0
- metadata +126 -0
@@ -0,0 +1,72 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2011 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
|
30
|
+
module KalturaApi
|
31
|
+
|
32
|
+
class KalturaKontikiStorageProfileOrderBy
|
33
|
+
CREATED_AT_ASC = "+createdAt"
|
34
|
+
UPDATED_AT_ASC = "+updatedAt"
|
35
|
+
CREATED_AT_DESC = "-createdAt"
|
36
|
+
UPDATED_AT_DESC = "-updatedAt"
|
37
|
+
end
|
38
|
+
|
39
|
+
class KalturaKontikiStorageProfile < KalturaStorageProfile
|
40
|
+
attr_accessor :service_token
|
41
|
+
|
42
|
+
end
|
43
|
+
|
44
|
+
class KalturaKontikiStorageDeleteJobData < KalturaStorageDeleteJobData
|
45
|
+
# Unique Kontiki MOID for the content uploaded to Kontiki
|
46
|
+
#
|
47
|
+
attr_accessor :content_moid
|
48
|
+
attr_accessor :service_token
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
class KalturaKontikiStorageExportJobData < KalturaStorageExportJobData
|
53
|
+
# Holds the id of the exported asset
|
54
|
+
#
|
55
|
+
attr_accessor :flavor_asset_id
|
56
|
+
# Unique Kontiki MOID for the content uploaded to Kontiki
|
57
|
+
#
|
58
|
+
attr_accessor :content_moid
|
59
|
+
attr_accessor :service_token
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
class KalturaKontikiStorageProfileBaseFilter < KalturaStorageProfileFilter
|
64
|
+
|
65
|
+
end
|
66
|
+
|
67
|
+
class KalturaKontikiStorageProfileFilter < KalturaKontikiStorageProfileBaseFilter
|
68
|
+
|
69
|
+
end
|
70
|
+
|
71
|
+
|
72
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
# ===================================================================================================
|
2
|
+
# _ __ _ _
|
3
|
+
# | |/ /__ _| | |_ _ _ _ _ __ _
|
4
|
+
# | ' </ _` | | _| || | '_/ _` |
|
5
|
+
# |_|\_\__,_|_|\__|\_,_|_| \__,_|
|
6
|
+
#
|
7
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
8
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
9
|
+
# text.
|
10
|
+
#
|
11
|
+
# Copyright (C) 2006-2011 Kaltura Inc.
|
12
|
+
#
|
13
|
+
# This program is free software: you can redistribute it and/or modify
|
14
|
+
# it under the terms of the GNU Affero General Public License as
|
15
|
+
# published by the Free Software Foundation, either version 3 of the
|
16
|
+
# License, or (at your option) any later version.
|
17
|
+
#
|
18
|
+
# This program is distributed in the hope that it will be useful,
|
19
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21
|
+
# GNU Affero General Public License for more details.
|
22
|
+
#
|
23
|
+
# You should have received a copy of the GNU Affero General Public License
|
24
|
+
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
25
|
+
#
|
26
|
+
# @ignore
|
27
|
+
# ===================================================================================================
|
28
|
+
require 'kaltura_client.rb'
|
29
|
+
|
30
|
+
module KalturaApi
|
31
|
+
|
32
|
+
|
33
|
+
# Allows user to 'like' or 'unlike' and entry
|
34
|
+
#
|
35
|
+
class KalturaLikeService < KalturaServiceBase
|
36
|
+
def initialize(client)
|
37
|
+
super(client)
|
38
|
+
end
|
39
|
+
|
40
|
+
def like(entry_id)
|
41
|
+
kparams = {}
|
42
|
+
client.add_param(kparams, 'entryId', entry_id);
|
43
|
+
client.queue_service_action_call('like_like', 'like', kparams);
|
44
|
+
if (client.is_multirequest)
|
45
|
+
return nil;
|
46
|
+
end
|
47
|
+
return client.do_queue();
|
48
|
+
end
|
49
|
+
|
50
|
+
def unlike(entry_id)
|
51
|
+
kparams = {}
|
52
|
+
client.add_param(kparams, 'entryId', entry_id);
|
53
|
+
client.queue_service_action_call('like_like', 'unlike', kparams);
|
54
|
+
if (client.is_multirequest)
|
55
|
+
return nil;
|
56
|
+
end
|
57
|
+
return client.do_queue();
|
58
|
+
end
|
59
|
+
|
60
|
+
def check_like_exists(entry_id, user_id=KalturaNotImplemented)
|
61
|
+
kparams = {}
|
62
|
+
client.add_param(kparams, 'entryId', entry_id);
|
63
|
+
client.add_param(kparams, 'userId', user_id);
|
64
|
+
client.queue_service_action_call('like_like', 'checkLikeExists', kparams);
|
65
|
+
if (client.is_multirequest)
|
66
|
+
return nil;
|
67
|
+
end
|
68
|
+
return client.do_queue();
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
class KalturaClient < KalturaClientBase
|
73
|
+
attr_reader :like_service
|
74
|
+
def like_service
|
75
|
+
if (@like_service == nil)
|
76
|
+
@like_service = KalturaLikeService.new(self)
|
77
|
+
end
|
78
|
+
return @like_service
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
end
|