papyromancer-kaltura-ruby 0.0.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.
- data/LICENSE +20 -0
- data/README.rdoc +15 -0
- data/Rakefile +56 -0
- data/lib/kaltura-ruby.rb +3 -0
- data/lib/kaltura_client.rb +1836 -0
- data/lib/kaltura_client_base.rb +217 -0
- data/test/kaltura-ruby_test.rb +7 -0
- data/test/test.rb +23 -0
- data/test/test_helper.rb +10 -0
- metadata +64 -0
data/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright (c) 2009 papyromancer
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
= kaltura-ruby
|
|
2
|
+
|
|
3
|
+
A gem implementation of Kaltura's Ruby API implementation.
|
|
4
|
+
|
|
5
|
+
Copyright (C) 2006-2008 Kaltura Inc.
|
|
6
|
+
|
|
7
|
+
= Usage
|
|
8
|
+
|
|
9
|
+
require 'rubygems'
|
|
10
|
+
require 'kaltura-ruby'
|
|
11
|
+
include Kaltura
|
|
12
|
+
|
|
13
|
+
== Copyright
|
|
14
|
+
|
|
15
|
+
Copyright (c) 2009 papyromancer. See LICENSE for details.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
require 'rubygems'
|
|
2
|
+
require 'rake'
|
|
3
|
+
|
|
4
|
+
begin
|
|
5
|
+
require 'jeweler'
|
|
6
|
+
Jeweler::Tasks.new do |gem|
|
|
7
|
+
gem.name = "kaltura-ruby"
|
|
8
|
+
gem.summary = "Ruby gem for accessing the Kaltura API"
|
|
9
|
+
gem.email = "papyromancer@papyromancer.net"
|
|
10
|
+
gem.homepage = "http://github.com/papyromancer/kaltura-ruby"
|
|
11
|
+
gem.authors = ["papyromancer"]
|
|
12
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
rescue LoadError
|
|
16
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
require 'rake/testtask'
|
|
20
|
+
Rake::TestTask.new(:test) do |test|
|
|
21
|
+
test.libs << 'lib' << 'test'
|
|
22
|
+
test.pattern = 'test/**/*_test.rb'
|
|
23
|
+
test.verbose = true
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
begin
|
|
27
|
+
require 'rcov/rcovtask'
|
|
28
|
+
Rcov::RcovTask.new do |test|
|
|
29
|
+
test.libs << 'test'
|
|
30
|
+
test.pattern = 'test/**/*_test.rb'
|
|
31
|
+
test.verbose = true
|
|
32
|
+
end
|
|
33
|
+
rescue LoadError
|
|
34
|
+
task :rcov do
|
|
35
|
+
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
task :default => :test
|
|
41
|
+
|
|
42
|
+
require 'rake/rdoctask'
|
|
43
|
+
Rake::RDocTask.new do |rdoc|
|
|
44
|
+
if File.exist?('VERSION.yml')
|
|
45
|
+
config = YAML.load(File.read('VERSION.yml'))
|
|
46
|
+
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
|
47
|
+
else
|
|
48
|
+
version = ""
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
rdoc.rdoc_dir = 'rdoc'
|
|
52
|
+
rdoc.title = "kaltura-ruby #{version}"
|
|
53
|
+
rdoc.rdoc_files.include('README*')
|
|
54
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
|
55
|
+
end
|
|
56
|
+
|
data/lib/kaltura-ruby.rb
ADDED
|
@@ -0,0 +1,1836 @@
|
|
|
1
|
+
#
|
|
2
|
+
# This file is part of the Kaltura Collaborative Media Suite which allows users
|
|
3
|
+
# to do with audio, video, and animation what Wiki platfroms allow them to do with
|
|
4
|
+
# text.
|
|
5
|
+
#
|
|
6
|
+
# Copyright (C) 2006-2008 Kaltura Inc.
|
|
7
|
+
#
|
|
8
|
+
# This program is free software: you can redistribute it and/or modify
|
|
9
|
+
# it under the terms of the GNU Affero General Public License as
|
|
10
|
+
# published by the Free Software Foundation, either version 3 of the
|
|
11
|
+
# License, or (at your option) any later version.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful,
|
|
14
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
16
|
+
# GNU Affero General Public License for more details.
|
|
17
|
+
#
|
|
18
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
19
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
20
|
+
#
|
|
21
|
+
|
|
22
|
+
require 'kaltura_client_base.rb'
|
|
23
|
+
|
|
24
|
+
module Kaltura
|
|
25
|
+
class KalturaEntry
|
|
26
|
+
|
|
27
|
+
attr_accessor :name
|
|
28
|
+
attr_accessor :tags
|
|
29
|
+
attr_accessor :type
|
|
30
|
+
attr_accessor :mediaType
|
|
31
|
+
attr_accessor :source
|
|
32
|
+
attr_accessor :sourceId
|
|
33
|
+
attr_accessor :sourceLink
|
|
34
|
+
attr_accessor :licenseType
|
|
35
|
+
attr_accessor :credit
|
|
36
|
+
attr_accessor :groupId
|
|
37
|
+
attr_accessor :partnerData
|
|
38
|
+
attr_accessor :conversionQuality
|
|
39
|
+
attr_accessor :permissions
|
|
40
|
+
attr_accessor :dataContent
|
|
41
|
+
attr_accessor :desiredVersion
|
|
42
|
+
attr_accessor :url
|
|
43
|
+
attr_accessor :thumbUrl
|
|
44
|
+
attr_accessor :filename
|
|
45
|
+
attr_accessor :realFilename
|
|
46
|
+
attr_accessor :indexedCustomData1
|
|
47
|
+
attr_accessor :thumbOffset
|
|
48
|
+
attr_accessor :mediaId
|
|
49
|
+
attr_accessor :screenName
|
|
50
|
+
attr_accessor :siteUrl
|
|
51
|
+
attr_accessor :description
|
|
52
|
+
attr_accessor :mediaDate
|
|
53
|
+
attr_accessor :adminTags
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
class KalturaBatchJob
|
|
57
|
+
|
|
58
|
+
attr_accessor :data
|
|
59
|
+
attr_accessor :status
|
|
60
|
+
attr_accessor :abort
|
|
61
|
+
attr_accessor :checkAgainTimeout
|
|
62
|
+
attr_accessor :progress
|
|
63
|
+
attr_accessor :message
|
|
64
|
+
attr_accessor :description
|
|
65
|
+
attr_accessor :updatesCount
|
|
66
|
+
attr_accessor :processorExpiration
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
class KalturaKShow
|
|
70
|
+
|
|
71
|
+
attr_accessor :name
|
|
72
|
+
attr_accessor :description
|
|
73
|
+
attr_accessor :tags
|
|
74
|
+
attr_accessor :indexedCustomData3
|
|
75
|
+
attr_accessor :groupId
|
|
76
|
+
attr_accessor :permissions
|
|
77
|
+
attr_accessor :partnerData
|
|
78
|
+
attr_accessor :allowQuickEdit
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class KalturaModeration
|
|
82
|
+
|
|
83
|
+
attr_accessor :comments
|
|
84
|
+
attr_accessor :objectType
|
|
85
|
+
attr_accessor :objectId
|
|
86
|
+
attr_accessor :reportCode
|
|
87
|
+
attr_accessor :status
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
class KalturaUiConf
|
|
91
|
+
|
|
92
|
+
attr_accessor :name
|
|
93
|
+
attr_accessor :objType
|
|
94
|
+
attr_accessor :width
|
|
95
|
+
attr_accessor :height
|
|
96
|
+
attr_accessor :htmlParams
|
|
97
|
+
attr_accessor :swfUrl
|
|
98
|
+
attr_accessor :swfUrlVersion
|
|
99
|
+
attr_accessor :confFile
|
|
100
|
+
attr_accessor :confVars
|
|
101
|
+
attr_accessor :useCdn
|
|
102
|
+
attr_accessor :tags
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
class KalturaUser
|
|
106
|
+
|
|
107
|
+
attr_accessor :screenName
|
|
108
|
+
attr_accessor :fullName
|
|
109
|
+
attr_accessor :email
|
|
110
|
+
attr_accessor :dateOfBirth
|
|
111
|
+
attr_accessor :aboutMe
|
|
112
|
+
attr_accessor :tags
|
|
113
|
+
attr_accessor :gender
|
|
114
|
+
attr_accessor :country
|
|
115
|
+
attr_accessor :state
|
|
116
|
+
attr_accessor :city
|
|
117
|
+
attr_accessor :zip
|
|
118
|
+
attr_accessor :urlList
|
|
119
|
+
attr_accessor :networkHighschool
|
|
120
|
+
attr_accessor :networkCollege
|
|
121
|
+
attr_accessor :partnerData
|
|
122
|
+
end
|
|
123
|
+
|
|
124
|
+
class KalturaWidget
|
|
125
|
+
|
|
126
|
+
attr_accessor :kshowId
|
|
127
|
+
attr_accessor :entryId
|
|
128
|
+
attr_accessor :sourceWidgetId
|
|
129
|
+
attr_accessor :uiConfId
|
|
130
|
+
attr_accessor :customData
|
|
131
|
+
attr_accessor :partnerData
|
|
132
|
+
attr_accessor :securityType
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
class KalturaPuserKuser
|
|
136
|
+
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
class KalturaConvesionProfileFilter
|
|
140
|
+
|
|
141
|
+
ORDER_BY_CREATED_AT_ASC = "+created_at";
|
|
142
|
+
ORDER_BY_CREATED_AT_DESC = "-created_at";
|
|
143
|
+
ORDER_BY_PROFILE_TYPE_ASC = "+profile_type";
|
|
144
|
+
ORDER_BY_PROFILE_TYPE_DESC = "-profile_type";
|
|
145
|
+
ORDER_BY_ID_ASC = "+id";
|
|
146
|
+
ORDER_BY_ID_DESC = "-id";
|
|
147
|
+
|
|
148
|
+
attr_accessor :equalId
|
|
149
|
+
attr_accessor :greaterThanOrEqualId
|
|
150
|
+
attr_accessor :equalStatus
|
|
151
|
+
attr_accessor :likeName
|
|
152
|
+
attr_accessor :inProfileType
|
|
153
|
+
attr_accessor :equalEnabled
|
|
154
|
+
attr_accessor :equalType
|
|
155
|
+
attr_accessor :equalUseWithBulk
|
|
156
|
+
attr_accessor :orderBy
|
|
157
|
+
attr_accessor :limit
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
class KalturaConversionProfile
|
|
161
|
+
|
|
162
|
+
attr_accessor :name
|
|
163
|
+
attr_accessor :profileType
|
|
164
|
+
attr_accessor :width
|
|
165
|
+
attr_accessor :height
|
|
166
|
+
attr_accessor :aspectRatio
|
|
167
|
+
attr_accessor :bypassFlv
|
|
168
|
+
attr_accessor :commercialTranscoder
|
|
169
|
+
attr_accessor :useWithBulk
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
class KalturaBatchJobFilter
|
|
173
|
+
|
|
174
|
+
ORDER_BY_ID_ASC = "+id";
|
|
175
|
+
ORDER_BY_ID_DESC = "-id";
|
|
176
|
+
|
|
177
|
+
attr_accessor :equalId
|
|
178
|
+
attr_accessor :greaterThanOrEqualId
|
|
179
|
+
attr_accessor :equalStatus
|
|
180
|
+
attr_accessor :equalJobType
|
|
181
|
+
attr_accessor :inJobType
|
|
182
|
+
attr_accessor :orderBy
|
|
183
|
+
attr_accessor :limit
|
|
184
|
+
end
|
|
185
|
+
|
|
186
|
+
class KalturaEntryFilter
|
|
187
|
+
|
|
188
|
+
ORDER_BY_CREATED_AT_ASC = "+created_at";
|
|
189
|
+
ORDER_BY_CREATED_AT_DESC = "-created_at";
|
|
190
|
+
ORDER_BY_VIEWS_ASC = "+views";
|
|
191
|
+
ORDER_BY_VIEWS_DESC = "-views";
|
|
192
|
+
ORDER_BY_NAME_ASC = "+name";
|
|
193
|
+
ORDER_BY_NAME_DESC = "-name";
|
|
194
|
+
ORDER_BY_MEDIA_DATE_ASC = "+media_date";
|
|
195
|
+
ORDER_BY_MEDIA_DATE_DESC = "-media_date";
|
|
196
|
+
ORDER_BY_TYPE_ASC = "+type";
|
|
197
|
+
ORDER_BY_TYPE_DESC = "-type";
|
|
198
|
+
ORDER_BY_MEDIA_TYPE_ASC = "+media_type";
|
|
199
|
+
ORDER_BY_MEDIA_TYPE_DESC = "-media_type";
|
|
200
|
+
ORDER_BY_PLAYS_ASC = "+plays";
|
|
201
|
+
ORDER_BY_PLAYS_DESC = "-plays";
|
|
202
|
+
ORDER_BY_RANK_ASC = "+rank";
|
|
203
|
+
ORDER_BY_RANK_DESC = "-rank";
|
|
204
|
+
ORDER_BY_MODERATION_COUNT_ASC = "+moderation_count";
|
|
205
|
+
ORDER_BY_MODERATION_COUNT_DESC = "-moderation_count";
|
|
206
|
+
ORDER_BY_MODERATION_STATUS_ASC = "+moderation_status";
|
|
207
|
+
ORDER_BY_MODERATION_STATUS_DESC = "-moderation_status";
|
|
208
|
+
ORDER_BY_MODIFIED_AT_ASC = "+modified_at";
|
|
209
|
+
ORDER_BY_MODIFIED_AT_DESC = "-modified_at";
|
|
210
|
+
ORDER_BY_ID_ASC = "+id";
|
|
211
|
+
ORDER_BY_ID_DESC = "-id";
|
|
212
|
+
|
|
213
|
+
attr_accessor :equalUserId
|
|
214
|
+
attr_accessor :equalKshowId
|
|
215
|
+
attr_accessor :equalStatus
|
|
216
|
+
attr_accessor :inStatus
|
|
217
|
+
attr_accessor :equalType
|
|
218
|
+
attr_accessor :inType
|
|
219
|
+
attr_accessor :equalMediaType
|
|
220
|
+
attr_accessor :inMediaType
|
|
221
|
+
attr_accessor :equalIndexedCustomData1
|
|
222
|
+
attr_accessor :inIndexedCustomData1
|
|
223
|
+
attr_accessor :likeName
|
|
224
|
+
attr_accessor :equalName
|
|
225
|
+
attr_accessor :equalTags
|
|
226
|
+
attr_accessor :likeTags
|
|
227
|
+
attr_accessor :multiLikeOrTags
|
|
228
|
+
attr_accessor :multiLikeAndTags
|
|
229
|
+
attr_accessor :multiLikeOrAdminTags
|
|
230
|
+
attr_accessor :multiLikeAndAdminTags
|
|
231
|
+
attr_accessor :likeAdminTags
|
|
232
|
+
attr_accessor :multiLikeOrName
|
|
233
|
+
attr_accessor :multiLikeAndName
|
|
234
|
+
attr_accessor :multiLikeOrSearchText
|
|
235
|
+
attr_accessor :multiLikeAndSearchText
|
|
236
|
+
attr_accessor :equalGroupId
|
|
237
|
+
attr_accessor :greaterThanOrEqualViews
|
|
238
|
+
attr_accessor :greaterThanOrEqualCreatedAt
|
|
239
|
+
attr_accessor :lessThanOrEqualCreatedAt
|
|
240
|
+
attr_accessor :greaterThanOrEqualUpdatedAt
|
|
241
|
+
attr_accessor :lessThanOrEqualUpdatedAt
|
|
242
|
+
attr_accessor :greaterThanOrEqualModifiedAt
|
|
243
|
+
attr_accessor :lessThanOrEqualModifiedAt
|
|
244
|
+
attr_accessor :inPartnerId
|
|
245
|
+
attr_accessor :equalPartnerId
|
|
246
|
+
attr_accessor :equalSourceLink
|
|
247
|
+
attr_accessor :greaterThanOrEqualMediaDate
|
|
248
|
+
attr_accessor :lessThanOrEqualMediaDate
|
|
249
|
+
attr_accessor :equalModerationStatus
|
|
250
|
+
attr_accessor :inModerationStatus
|
|
251
|
+
attr_accessor :inDisplayInSearch
|
|
252
|
+
attr_accessor :multiLikeOrTagsOrName
|
|
253
|
+
attr_accessor :multiLikeOrTagsOrAdminTags
|
|
254
|
+
attr_accessor :multiLikeOrTagsOrAdminTagsOrName
|
|
255
|
+
attr_accessor :orderBy
|
|
256
|
+
attr_accessor :limit
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
class KalturaKShowFilter
|
|
260
|
+
|
|
261
|
+
ORDER_BY_CREATED_AT_ASC = "+created_at";
|
|
262
|
+
ORDER_BY_CREATED_AT_DESC = "-created_at";
|
|
263
|
+
ORDER_BY_VIEWS_ASC = "+views";
|
|
264
|
+
ORDER_BY_VIEWS_DESC = "-views";
|
|
265
|
+
ORDER_BY_RANK_ASC = "+rank";
|
|
266
|
+
ORDER_BY_RANK_DESC = "-rank";
|
|
267
|
+
ORDER_BY_ID_ASC = "+id";
|
|
268
|
+
ORDER_BY_ID_DESC = "-id";
|
|
269
|
+
|
|
270
|
+
attr_accessor :likeName
|
|
271
|
+
attr_accessor :likeTags
|
|
272
|
+
attr_accessor :multiLikeOrTags
|
|
273
|
+
attr_accessor :multiLikeAndTags
|
|
274
|
+
attr_accessor :greaterThanOrEqualViews
|
|
275
|
+
attr_accessor :equalType
|
|
276
|
+
attr_accessor :equalProducerId
|
|
277
|
+
attr_accessor :greaterThanOrEqualCreatedAt
|
|
278
|
+
attr_accessor :lessThanOrEqualCreatedAt
|
|
279
|
+
attr_accessor :bitAndStatus
|
|
280
|
+
attr_accessor :equalIndexedCustomData3
|
|
281
|
+
attr_accessor :orderBy
|
|
282
|
+
attr_accessor :limit
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
class KalturaModerationFilter
|
|
286
|
+
|
|
287
|
+
ORDER_BY_ID_ASC = "+id";
|
|
288
|
+
ORDER_BY_ID_DESC = "-id";
|
|
289
|
+
|
|
290
|
+
attr_accessor :equalId
|
|
291
|
+
attr_accessor :equalPuserId
|
|
292
|
+
attr_accessor :equalStatus
|
|
293
|
+
attr_accessor :inStatus
|
|
294
|
+
attr_accessor :likeComments
|
|
295
|
+
attr_accessor :equalObjectId
|
|
296
|
+
attr_accessor :equalObjectType
|
|
297
|
+
attr_accessor :equalGroupId
|
|
298
|
+
attr_accessor :orderBy
|
|
299
|
+
attr_accessor :limit
|
|
300
|
+
end
|
|
301
|
+
|
|
302
|
+
class KalturaNotificationFilter
|
|
303
|
+
|
|
304
|
+
ORDER_BY_ID_ASC = "+id";
|
|
305
|
+
ORDER_BY_ID_DESC = "-id";
|
|
306
|
+
|
|
307
|
+
attr_accessor :equalId
|
|
308
|
+
attr_accessor :greaterThanOrEqualId
|
|
309
|
+
attr_accessor :equalStatus
|
|
310
|
+
attr_accessor :equalType
|
|
311
|
+
attr_accessor :orderBy
|
|
312
|
+
attr_accessor :limit
|
|
313
|
+
end
|
|
314
|
+
|
|
315
|
+
class KalturaNotification
|
|
316
|
+
|
|
317
|
+
attr_accessor :id
|
|
318
|
+
attr_accessor :status
|
|
319
|
+
attr_accessor :notificationResult
|
|
320
|
+
end
|
|
321
|
+
|
|
322
|
+
class KalturaUiConfFilter
|
|
323
|
+
|
|
324
|
+
ORDER_BY_ID_ASC = "+id";
|
|
325
|
+
ORDER_BY_ID_DESC = "-id";
|
|
326
|
+
|
|
327
|
+
attr_accessor :equalId
|
|
328
|
+
attr_accessor :greaterThanOrEqualId
|
|
329
|
+
attr_accessor :equalStatus
|
|
330
|
+
attr_accessor :equalObjType
|
|
331
|
+
attr_accessor :likeName
|
|
332
|
+
attr_accessor :multiLikeOrTags
|
|
333
|
+
attr_accessor :orderBy
|
|
334
|
+
attr_accessor :limit
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
class KalturaBatchjobType
|
|
338
|
+
|
|
339
|
+
CONVERT = "0";
|
|
340
|
+
IMPORT = "1";
|
|
341
|
+
DELETE = "2";
|
|
342
|
+
FLATTEN = "3";
|
|
343
|
+
BULKUPLOAD = "4";
|
|
344
|
+
DVDCREATOR = "5";
|
|
345
|
+
DOWNLOAD = "6";
|
|
346
|
+
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
class KalturaPartner
|
|
350
|
+
|
|
351
|
+
attr_accessor :name
|
|
352
|
+
attr_accessor :url1
|
|
353
|
+
attr_accessor :url2
|
|
354
|
+
attr_accessor :appearInSearch
|
|
355
|
+
attr_accessor :adminName
|
|
356
|
+
attr_accessor :adminEmail
|
|
357
|
+
attr_accessor :description
|
|
358
|
+
attr_accessor :commercialUse
|
|
359
|
+
attr_accessor :landingPage
|
|
360
|
+
attr_accessor :userLandingPage
|
|
361
|
+
attr_accessor :notificationsConfig
|
|
362
|
+
attr_accessor :notify
|
|
363
|
+
attr_accessor :allowMultiNotification
|
|
364
|
+
attr_accessor :contentCategories
|
|
365
|
+
attr_accessor :type
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
class KalturaEntryMediaType
|
|
369
|
+
|
|
370
|
+
ANY = "0";
|
|
371
|
+
VIDEO = "1";
|
|
372
|
+
IMAGE = "2";
|
|
373
|
+
TEXT = "3";
|
|
374
|
+
HTML = "4";
|
|
375
|
+
AUDIO = "5";
|
|
376
|
+
SHOW = "6";
|
|
377
|
+
SHOW_XML = "7";
|
|
378
|
+
BUBBLES = "9";
|
|
379
|
+
XML = "10";
|
|
380
|
+
GENERIC_1 = "101";
|
|
381
|
+
GENERIC_2 = "102";
|
|
382
|
+
GENERIC_3 = "103";
|
|
383
|
+
GENERIC_4 = "104";
|
|
384
|
+
|
|
385
|
+
end
|
|
386
|
+
|
|
387
|
+
class KalturaEntryMediaSource
|
|
388
|
+
|
|
389
|
+
FILE = "1";
|
|
390
|
+
WEBCAM = "2";
|
|
391
|
+
FLICKR = "3";
|
|
392
|
+
YOUTUBE = "4";
|
|
393
|
+
URL = "5";
|
|
394
|
+
TEXT = "6";
|
|
395
|
+
MYSPACE = "7";
|
|
396
|
+
PHOTOBUCKET = "8";
|
|
397
|
+
JAMENDO = "9";
|
|
398
|
+
CCMIXTER = "10";
|
|
399
|
+
NYPL = "11";
|
|
400
|
+
CURRENT = "12";
|
|
401
|
+
MEDIA_COMMONS = "13";
|
|
402
|
+
KALTURA = "20";
|
|
403
|
+
KALTURA_USER_CLIPS = "21";
|
|
404
|
+
ARCHIVE_ORG = "22";
|
|
405
|
+
KALTURA_PARTNER = "23";
|
|
406
|
+
METACAFE = "24";
|
|
407
|
+
KALTURA_QA = "25";
|
|
408
|
+
KALTURA_KSHOW = "26";
|
|
409
|
+
KALTURA_PARTNER_KSHOW = "27";
|
|
410
|
+
SEARCH_PROXY = "28";
|
|
411
|
+
|
|
412
|
+
end
|
|
413
|
+
|
|
414
|
+
class KalturaEntryType
|
|
415
|
+
|
|
416
|
+
BACKGROUND = "0";
|
|
417
|
+
MEDIACLIP = "1";
|
|
418
|
+
SHOW = "2";
|
|
419
|
+
BUBBLES = "4";
|
|
420
|
+
PLAYLIST = "5";
|
|
421
|
+
DVD = "300";
|
|
422
|
+
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
class KalturaClient < KalturaClientBase
|
|
426
|
+
def addDownload(kalturaSessionUser, entryId, fileFormat, entryVersion = nil)
|
|
427
|
+
params = {}
|
|
428
|
+
params["entry_id"] = entryId;
|
|
429
|
+
params["file_format"] = fileFormat;
|
|
430
|
+
addOptionalParam(params, "entry_version", entryVersion);
|
|
431
|
+
|
|
432
|
+
hit("adddownload", kalturaSessionUser, params);
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
def addDvdEntry(kalturaSessionUser, dvdEntry)
|
|
436
|
+
params = {}
|
|
437
|
+
addOptionalParam(params, "dvdEntry_name", dvdEntry.name);
|
|
438
|
+
addOptionalParam(params, "dvdEntry_tags", dvdEntry.tags);
|
|
439
|
+
addOptionalParam(params, "dvdEntry_type", dvdEntry.type);
|
|
440
|
+
addOptionalParam(params, "dvdEntry_mediaType", dvdEntry.mediaType);
|
|
441
|
+
addOptionalParam(params, "dvdEntry_source", dvdEntry.source);
|
|
442
|
+
addOptionalParam(params, "dvdEntry_sourceId", dvdEntry.sourceId);
|
|
443
|
+
addOptionalParam(params, "dvdEntry_sourceLink", dvdEntry.sourceLink);
|
|
444
|
+
addOptionalParam(params, "dvdEntry_licenseType", dvdEntry.licenseType);
|
|
445
|
+
addOptionalParam(params, "dvdEntry_credit", dvdEntry.credit);
|
|
446
|
+
addOptionalParam(params, "dvdEntry_groupId", dvdEntry.groupId);
|
|
447
|
+
addOptionalParam(params, "dvdEntry_partnerData", dvdEntry.partnerData);
|
|
448
|
+
addOptionalParam(params, "dvdEntry_conversionQuality", dvdEntry.conversionQuality);
|
|
449
|
+
addOptionalParam(params, "dvdEntry_permissions", dvdEntry.permissions);
|
|
450
|
+
addOptionalParam(params, "dvdEntry_dataContent", dvdEntry.dataContent);
|
|
451
|
+
addOptionalParam(params, "dvdEntry_desiredVersion", dvdEntry.desiredVersion);
|
|
452
|
+
addOptionalParam(params, "dvdEntry_url", dvdEntry.url);
|
|
453
|
+
addOptionalParam(params, "dvdEntry_thumbUrl", dvdEntry.thumbUrl);
|
|
454
|
+
addOptionalParam(params, "dvdEntry_filename", dvdEntry.filename);
|
|
455
|
+
addOptionalParam(params, "dvdEntry_realFilename", dvdEntry.realFilename);
|
|
456
|
+
addOptionalParam(params, "dvdEntry_indexedCustomData1", dvdEntry.indexedCustomData1);
|
|
457
|
+
addOptionalParam(params, "dvdEntry_thumbOffset", dvdEntry.thumbOffset);
|
|
458
|
+
addOptionalParam(params, "dvdEntry_mediaId", dvdEntry.mediaId);
|
|
459
|
+
addOptionalParam(params, "dvdEntry_screenName", dvdEntry.screenName);
|
|
460
|
+
addOptionalParam(params, "dvdEntry_siteUrl", dvdEntry.siteUrl);
|
|
461
|
+
addOptionalParam(params, "dvdEntry_description", dvdEntry.description);
|
|
462
|
+
addOptionalParam(params, "dvdEntry_mediaDate", dvdEntry.mediaDate);
|
|
463
|
+
addOptionalParam(params, "dvdEntry_adminTags", dvdEntry.adminTags);
|
|
464
|
+
|
|
465
|
+
hit("adddvdentry", kalturaSessionUser, params);
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
def addDvdJob(kalturaSessionUser, entryId)
|
|
469
|
+
params = {}
|
|
470
|
+
params["entry_id"] = entryId;
|
|
471
|
+
|
|
472
|
+
hit("adddvdjob", kalturaSessionUser, params);
|
|
473
|
+
end
|
|
474
|
+
|
|
475
|
+
def addEntry(kalturaSessionUser, kshowId, entry, uid = nil)
|
|
476
|
+
params = {}
|
|
477
|
+
params["kshow_id"] = kshowId;
|
|
478
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
479
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
480
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
481
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
482
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
483
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
484
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
485
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
486
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
487
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
488
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
489
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
490
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
491
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
492
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
493
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
494
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
495
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
496
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
497
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
498
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
499
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
500
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
501
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
502
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
503
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
504
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
505
|
+
addOptionalParam(params, "uid", uid);
|
|
506
|
+
|
|
507
|
+
hit("addentry", kalturaSessionUser, params);
|
|
508
|
+
end
|
|
509
|
+
|
|
510
|
+
def addKShow(kalturaSessionUser, kshow, detailed = nil, allowDuplicateNames = nil)
|
|
511
|
+
params = {}
|
|
512
|
+
addOptionalParam(params, "kshow_name", kshow.name);
|
|
513
|
+
addOptionalParam(params, "kshow_description", kshow.description);
|
|
514
|
+
addOptionalParam(params, "kshow_tags", kshow.tags);
|
|
515
|
+
addOptionalParam(params, "kshow_indexedCustomData3", kshow.indexedCustomData3);
|
|
516
|
+
addOptionalParam(params, "kshow_groupId", kshow.groupId);
|
|
517
|
+
addOptionalParam(params, "kshow_permissions", kshow.permissions);
|
|
518
|
+
addOptionalParam(params, "kshow_partnerData", kshow.partnerData);
|
|
519
|
+
addOptionalParam(params, "kshow_allowQuickEdit", kshow.allowQuickEdit);
|
|
520
|
+
addOptionalParam(params, "detailed", detailed);
|
|
521
|
+
addOptionalParam(params, "allow_duplicate_names", allowDuplicateNames);
|
|
522
|
+
|
|
523
|
+
hit("addkshow", kalturaSessionUser, params);
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
def addModeration(kalturaSessionUser, moderation)
|
|
527
|
+
params = {}
|
|
528
|
+
addOptionalParam(params, "moderation_comments", moderation.comments);
|
|
529
|
+
addOptionalParam(params, "moderation_objectType", moderation.objectType);
|
|
530
|
+
addOptionalParam(params, "moderation_objectId", moderation.objectId);
|
|
531
|
+
addOptionalParam(params, "moderation_reportCode", moderation.reportCode);
|
|
532
|
+
addOptionalParam(params, "moderation_status", moderation.status);
|
|
533
|
+
|
|
534
|
+
hit("addmoderation", kalturaSessionUser, params);
|
|
535
|
+
end
|
|
536
|
+
|
|
537
|
+
def addPartnerEntry(kalturaSessionUser, kshowId, entry, uid = nil)
|
|
538
|
+
params = {}
|
|
539
|
+
params["kshow_id"] = kshowId;
|
|
540
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
541
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
542
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
543
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
544
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
545
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
546
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
547
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
548
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
549
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
550
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
551
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
552
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
553
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
554
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
555
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
556
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
557
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
558
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
559
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
560
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
561
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
562
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
563
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
564
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
565
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
566
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
567
|
+
addOptionalParam(params, "uid", uid);
|
|
568
|
+
|
|
569
|
+
hit("addpartnerentry", kalturaSessionUser, params);
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
def addPlaylist(kalturaSessionUser, playlist)
|
|
573
|
+
params = {}
|
|
574
|
+
addOptionalParam(params, "playlist_name", playlist.name);
|
|
575
|
+
addOptionalParam(params, "playlist_tags", playlist.tags);
|
|
576
|
+
addOptionalParam(params, "playlist_type", playlist.type);
|
|
577
|
+
addOptionalParam(params, "playlist_mediaType", playlist.mediaType);
|
|
578
|
+
addOptionalParam(params, "playlist_source", playlist.source);
|
|
579
|
+
addOptionalParam(params, "playlist_sourceId", playlist.sourceId);
|
|
580
|
+
addOptionalParam(params, "playlist_sourceLink", playlist.sourceLink);
|
|
581
|
+
addOptionalParam(params, "playlist_licenseType", playlist.licenseType);
|
|
582
|
+
addOptionalParam(params, "playlist_credit", playlist.credit);
|
|
583
|
+
addOptionalParam(params, "playlist_groupId", playlist.groupId);
|
|
584
|
+
addOptionalParam(params, "playlist_partnerData", playlist.partnerData);
|
|
585
|
+
addOptionalParam(params, "playlist_conversionQuality", playlist.conversionQuality);
|
|
586
|
+
addOptionalParam(params, "playlist_permissions", playlist.permissions);
|
|
587
|
+
addOptionalParam(params, "playlist_dataContent", playlist.dataContent);
|
|
588
|
+
addOptionalParam(params, "playlist_desiredVersion", playlist.desiredVersion);
|
|
589
|
+
addOptionalParam(params, "playlist_url", playlist.url);
|
|
590
|
+
addOptionalParam(params, "playlist_thumbUrl", playlist.thumbUrl);
|
|
591
|
+
addOptionalParam(params, "playlist_filename", playlist.filename);
|
|
592
|
+
addOptionalParam(params, "playlist_realFilename", playlist.realFilename);
|
|
593
|
+
addOptionalParam(params, "playlist_indexedCustomData1", playlist.indexedCustomData1);
|
|
594
|
+
addOptionalParam(params, "playlist_thumbOffset", playlist.thumbOffset);
|
|
595
|
+
addOptionalParam(params, "playlist_mediaId", playlist.mediaId);
|
|
596
|
+
addOptionalParam(params, "playlist_screenName", playlist.screenName);
|
|
597
|
+
addOptionalParam(params, "playlist_siteUrl", playlist.siteUrl);
|
|
598
|
+
addOptionalParam(params, "playlist_description", playlist.description);
|
|
599
|
+
addOptionalParam(params, "playlist_mediaDate", playlist.mediaDate);
|
|
600
|
+
addOptionalParam(params, "playlist_adminTags", playlist.adminTags);
|
|
601
|
+
|
|
602
|
+
hit("addplaylist", kalturaSessionUser, params);
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
def addRoughcutEntry(kalturaSessionUser, kshowId, entry)
|
|
606
|
+
params = {}
|
|
607
|
+
params["kshow_id"] = kshowId;
|
|
608
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
609
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
610
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
611
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
612
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
613
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
614
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
615
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
616
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
617
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
618
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
619
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
620
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
621
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
622
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
623
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
624
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
625
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
626
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
627
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
628
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
629
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
630
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
631
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
632
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
633
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
634
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
635
|
+
|
|
636
|
+
hit("addroughcutentry", kalturaSessionUser, params);
|
|
637
|
+
end
|
|
638
|
+
|
|
639
|
+
def addUiConf(kalturaSessionUser, uiconf)
|
|
640
|
+
params = {}
|
|
641
|
+
addOptionalParam(params, "uiconf_name", uiconf.name);
|
|
642
|
+
addOptionalParam(params, "uiconf_objType", uiconf.objType);
|
|
643
|
+
addOptionalParam(params, "uiconf_width", uiconf.width);
|
|
644
|
+
addOptionalParam(params, "uiconf_height", uiconf.height);
|
|
645
|
+
addOptionalParam(params, "uiconf_htmlParams", uiconf.htmlParams);
|
|
646
|
+
addOptionalParam(params, "uiconf_swfUrl", uiconf.swfUrl);
|
|
647
|
+
addOptionalParam(params, "uiconf_swfUrlVersion", uiconf.swfUrlVersion);
|
|
648
|
+
addOptionalParam(params, "uiconf_confFile", uiconf.confFile);
|
|
649
|
+
addOptionalParam(params, "uiconf_confVars", uiconf.confVars);
|
|
650
|
+
addOptionalParam(params, "uiconf_useCdn", uiconf.useCdn);
|
|
651
|
+
addOptionalParam(params, "uiconf_tags", uiconf.tags);
|
|
652
|
+
|
|
653
|
+
hit("adduiconf", kalturaSessionUser, params);
|
|
654
|
+
end
|
|
655
|
+
|
|
656
|
+
def addUser(kalturaSessionUser, userId, user)
|
|
657
|
+
params = {}
|
|
658
|
+
params["user_id"] = userId;
|
|
659
|
+
addOptionalParam(params, "user_screenName", user.screenName);
|
|
660
|
+
addOptionalParam(params, "user_fullName", user.fullName);
|
|
661
|
+
addOptionalParam(params, "user_email", user.email);
|
|
662
|
+
addOptionalParam(params, "user_dateOfBirth", user.dateOfBirth);
|
|
663
|
+
addOptionalParam(params, "user_aboutMe", user.aboutMe);
|
|
664
|
+
addOptionalParam(params, "user_tags", user.tags);
|
|
665
|
+
addOptionalParam(params, "user_gender", user.gender);
|
|
666
|
+
addOptionalParam(params, "user_country", user.country);
|
|
667
|
+
addOptionalParam(params, "user_state", user.state);
|
|
668
|
+
addOptionalParam(params, "user_city", user.city);
|
|
669
|
+
addOptionalParam(params, "user_zip", user.zip);
|
|
670
|
+
addOptionalParam(params, "user_urlList", user.urlList);
|
|
671
|
+
addOptionalParam(params, "user_networkHighschool", user.networkHighschool);
|
|
672
|
+
addOptionalParam(params, "user_networkCollege", user.networkCollege);
|
|
673
|
+
addOptionalParam(params, "user_partnerData", user.partnerData);
|
|
674
|
+
|
|
675
|
+
hit("adduser", kalturaSessionUser, params);
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
def addWidget(kalturaSessionUser, widget)
|
|
679
|
+
params = {}
|
|
680
|
+
addOptionalParam(params, "widget_kshowId", widget.kshowId);
|
|
681
|
+
addOptionalParam(params, "widget_entryId", widget.entryId);
|
|
682
|
+
addOptionalParam(params, "widget_sourceWidgetId", widget.sourceWidgetId);
|
|
683
|
+
addOptionalParam(params, "widget_uiConfId", widget.uiConfId);
|
|
684
|
+
addOptionalParam(params, "widget_customData", widget.customData);
|
|
685
|
+
addOptionalParam(params, "widget_partnerData", widget.partnerData);
|
|
686
|
+
addOptionalParam(params, "widget_securityType", widget.securityType);
|
|
687
|
+
|
|
688
|
+
hit("addwidget", kalturaSessionUser, params);
|
|
689
|
+
end
|
|
690
|
+
|
|
691
|
+
def adminLogin(kalturaSessionUser, email, password)
|
|
692
|
+
params = {}
|
|
693
|
+
params["email"] = email;
|
|
694
|
+
params["password"] = password;
|
|
695
|
+
|
|
696
|
+
hit("adminlogin", kalturaSessionUser, params);
|
|
697
|
+
end
|
|
698
|
+
|
|
699
|
+
def appendEntryToRoughcut(kalturaSessionUser, entryId, kshowId, showEntryId = nil)
|
|
700
|
+
params = {}
|
|
701
|
+
params["entry_id"] = entryId;
|
|
702
|
+
params["kshow_id"] = kshowId;
|
|
703
|
+
addOptionalParam(params, "show_entry_id", showEntryId);
|
|
704
|
+
|
|
705
|
+
hit("appendentrytoroughcut", kalturaSessionUser, params);
|
|
706
|
+
end
|
|
707
|
+
|
|
708
|
+
def checkNotifications(kalturaSessionUser, notificationIds, separator = ",", detailed = nil)
|
|
709
|
+
params = {}
|
|
710
|
+
params["notification_ids"] = notificationIds;
|
|
711
|
+
addOptionalParam(params, "separator", separator);
|
|
712
|
+
addOptionalParam(params, "detailed", detailed);
|
|
713
|
+
|
|
714
|
+
hit("checknotifications", kalturaSessionUser, params);
|
|
715
|
+
end
|
|
716
|
+
|
|
717
|
+
def cloneKShow(kalturaSessionUser, kshowId, detailed = nil)
|
|
718
|
+
params = {}
|
|
719
|
+
params["kshow_id"] = kshowId;
|
|
720
|
+
addOptionalParam(params, "detailed", detailed);
|
|
721
|
+
|
|
722
|
+
hit("clonekshow", kalturaSessionUser, params);
|
|
723
|
+
end
|
|
724
|
+
|
|
725
|
+
def cloneRoughcut(kalturaSessionUser, entryId, detailed = nil)
|
|
726
|
+
params = {}
|
|
727
|
+
params["entry_id"] = entryId;
|
|
728
|
+
addOptionalParam(params, "detailed", detailed);
|
|
729
|
+
|
|
730
|
+
hit("cloneroughcut", kalturaSessionUser, params);
|
|
731
|
+
end
|
|
732
|
+
|
|
733
|
+
def cloneUiConf(kalturaSessionUser, uiconfId, detailed = nil)
|
|
734
|
+
params = {}
|
|
735
|
+
params["uiconf_id"] = uiconfId;
|
|
736
|
+
addOptionalParam(params, "detailed", detailed);
|
|
737
|
+
|
|
738
|
+
hit("cloneuiconf", kalturaSessionUser, params);
|
|
739
|
+
end
|
|
740
|
+
|
|
741
|
+
def deleteEntry(kalturaSessionUser, entryId)
|
|
742
|
+
params = {}
|
|
743
|
+
params["entry_id"] = entryId;
|
|
744
|
+
|
|
745
|
+
hit("deleteentry", kalturaSessionUser, params);
|
|
746
|
+
end
|
|
747
|
+
|
|
748
|
+
def deleteKShow(kalturaSessionUser, kshowId)
|
|
749
|
+
params = {}
|
|
750
|
+
params["kshow_id"] = kshowId;
|
|
751
|
+
|
|
752
|
+
hit("deletekshow", kalturaSessionUser, params);
|
|
753
|
+
end
|
|
754
|
+
|
|
755
|
+
def deletePlaylist(kalturaSessionUser, entryId)
|
|
756
|
+
params = {}
|
|
757
|
+
params["entry_id"] = entryId;
|
|
758
|
+
|
|
759
|
+
hit("deleteplaylist", kalturaSessionUser, params);
|
|
760
|
+
end
|
|
761
|
+
|
|
762
|
+
def deleteUser(kalturaSessionUser, userId)
|
|
763
|
+
params = {}
|
|
764
|
+
params["user_id"] = userId;
|
|
765
|
+
|
|
766
|
+
hit("deleteuser", kalturaSessionUser, params);
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
def executePlaylist(kalturaSessionUser, playlistId, fp = nil, filter1 = nil, filter2 = nil, filter3 = nil, filter4 = nil, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
770
|
+
params = {}
|
|
771
|
+
params["playlist_id"] = playlistId;
|
|
772
|
+
addOptionalParam(params, "fp", fp);
|
|
773
|
+
addOptionalParam(params, "filter1", filter1);
|
|
774
|
+
addOptionalParam(params, "filter2", filter2);
|
|
775
|
+
addOptionalParam(params, "filter3", filter3);
|
|
776
|
+
addOptionalParam(params, "filter4", filter4);
|
|
777
|
+
addOptionalParam(params, "detailed", detailed);
|
|
778
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
779
|
+
addOptionalParam(params, "page", page);
|
|
780
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
781
|
+
|
|
782
|
+
hit("executeplaylist", kalturaSessionUser, params);
|
|
783
|
+
end
|
|
784
|
+
|
|
785
|
+
def getAdminTags(kalturaSessionUser)
|
|
786
|
+
params = {}
|
|
787
|
+
|
|
788
|
+
hit("getadmintags", kalturaSessionUser, params);
|
|
789
|
+
end
|
|
790
|
+
|
|
791
|
+
def getAllEntries(kalturaSessionUser, entryId, kshowId, listType = nil, version = nil, disableRoughcutEntryData = nil)
|
|
792
|
+
params = {}
|
|
793
|
+
params["entry_id"] = entryId;
|
|
794
|
+
params["kshow_id"] = kshowId;
|
|
795
|
+
addOptionalParam(params, "list_type", listType);
|
|
796
|
+
addOptionalParam(params, "version", version);
|
|
797
|
+
addOptionalParam(params, "disable_roughcut_entry_data", disableRoughcutEntryData);
|
|
798
|
+
|
|
799
|
+
hit("getallentries", kalturaSessionUser, params);
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
def getDefaultWidget(kalturaSessionUser, uiConfId = nil)
|
|
803
|
+
params = {}
|
|
804
|
+
addOptionalParam(params, "ui_conf_id", uiConfId);
|
|
805
|
+
|
|
806
|
+
hit("getdefaultwidget", kalturaSessionUser, params);
|
|
807
|
+
end
|
|
808
|
+
|
|
809
|
+
def getDvdEntry(kalturaSessionUser, dvdEntryId, detailed = nil)
|
|
810
|
+
params = {}
|
|
811
|
+
params["dvdEntry_id"] = dvdEntryId;
|
|
812
|
+
addOptionalParam(params, "detailed", detailed);
|
|
813
|
+
|
|
814
|
+
hit("getdvdentry", kalturaSessionUser, params);
|
|
815
|
+
end
|
|
816
|
+
|
|
817
|
+
def getEntries(kalturaSessionUser, entryIds, separator = ",", detailed = nil)
|
|
818
|
+
params = {}
|
|
819
|
+
params["entry_ids"] = entryIds;
|
|
820
|
+
addOptionalParam(params, "separator", separator);
|
|
821
|
+
addOptionalParam(params, "detailed", detailed);
|
|
822
|
+
|
|
823
|
+
hit("getentries", kalturaSessionUser, params);
|
|
824
|
+
end
|
|
825
|
+
|
|
826
|
+
def getEntry(kalturaSessionUser, entryId, detailed = nil, version = nil)
|
|
827
|
+
params = {}
|
|
828
|
+
params["entry_id"] = entryId;
|
|
829
|
+
addOptionalParam(params, "detailed", detailed);
|
|
830
|
+
addOptionalParam(params, "version", version);
|
|
831
|
+
|
|
832
|
+
hit("getentry", kalturaSessionUser, params);
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
def getEntryRoughcuts(kalturaSessionUser, entryId)
|
|
836
|
+
params = {}
|
|
837
|
+
params["entry_id"] = entryId;
|
|
838
|
+
|
|
839
|
+
hit("getentryroughcuts", kalturaSessionUser, params);
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
def getKShow(kalturaSessionUser, kshowId, detailed = nil)
|
|
843
|
+
params = {}
|
|
844
|
+
params["kshow_id"] = kshowId;
|
|
845
|
+
addOptionalParam(params, "detailed", detailed);
|
|
846
|
+
|
|
847
|
+
hit("getkshow", kalturaSessionUser, params);
|
|
848
|
+
end
|
|
849
|
+
|
|
850
|
+
def getLastVersionsInfo(kalturaSessionUser, kshowId)
|
|
851
|
+
params = {}
|
|
852
|
+
params["kshow_id"] = kshowId;
|
|
853
|
+
|
|
854
|
+
hit("getlastversionsinfo", kalturaSessionUser, params);
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
def getMetaDataAction(kalturaSessionUser, entryId, kshowId, version)
|
|
858
|
+
params = {}
|
|
859
|
+
params["entry_id"] = entryId;
|
|
860
|
+
params["kshow_id"] = kshowId;
|
|
861
|
+
params["version"] = version;
|
|
862
|
+
|
|
863
|
+
hit("getmetadata", kalturaSessionUser, params);
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
def getPartner(kalturaSessionUser, partnerAdminEmail, cmsPassword, partnerId)
|
|
867
|
+
params = {}
|
|
868
|
+
params["partner_adminEmail"] = partnerAdminEmail;
|
|
869
|
+
params["cms_password"] = cmsPassword;
|
|
870
|
+
params["partner_id"] = partnerId;
|
|
871
|
+
|
|
872
|
+
hit("getpartner", kalturaSessionUser, params);
|
|
873
|
+
end
|
|
874
|
+
|
|
875
|
+
def getPlaylist(kalturaSessionUser, playlistId, detailed = nil)
|
|
876
|
+
params = {}
|
|
877
|
+
params["playlist_id"] = playlistId;
|
|
878
|
+
addOptionalParam(params, "detailed", detailed);
|
|
879
|
+
|
|
880
|
+
hit("getplaylist", kalturaSessionUser, params);
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
def getThumbnail(kalturaSessionUser, filename)
|
|
884
|
+
params = {}
|
|
885
|
+
params["filename"] = filename;
|
|
886
|
+
|
|
887
|
+
hit("getthumbnail", kalturaSessionUser, params);
|
|
888
|
+
end
|
|
889
|
+
|
|
890
|
+
def getUIConf(kalturaSessionUser, uiConfId, detailed = nil)
|
|
891
|
+
params = {}
|
|
892
|
+
params["ui_conf_id"] = uiConfId;
|
|
893
|
+
addOptionalParam(params, "detailed", detailed);
|
|
894
|
+
|
|
895
|
+
hit("getuiconf", kalturaSessionUser, params);
|
|
896
|
+
end
|
|
897
|
+
|
|
898
|
+
def getUser(kalturaSessionUser, userId, detailed = nil)
|
|
899
|
+
params = {}
|
|
900
|
+
params["user_id"] = userId;
|
|
901
|
+
addOptionalParam(params, "detailed", detailed);
|
|
902
|
+
|
|
903
|
+
hit("getuser", kalturaSessionUser, params);
|
|
904
|
+
end
|
|
905
|
+
|
|
906
|
+
def getWidget(kalturaSessionUser, widgetId, detailed = nil)
|
|
907
|
+
params = {}
|
|
908
|
+
params["widget_id"] = widgetId;
|
|
909
|
+
addOptionalParam(params, "detailed", detailed);
|
|
910
|
+
|
|
911
|
+
hit("getwidget", kalturaSessionUser, params);
|
|
912
|
+
end
|
|
913
|
+
|
|
914
|
+
def handleModeration(kalturaSessionUser, moderationId, moderationStatus)
|
|
915
|
+
params = {}
|
|
916
|
+
params["moderation_id"] = moderationId;
|
|
917
|
+
params["moderation_status"] = moderationStatus;
|
|
918
|
+
|
|
919
|
+
hit("handlemoderation", kalturaSessionUser, params);
|
|
920
|
+
end
|
|
921
|
+
|
|
922
|
+
def listConversionProfile(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1)
|
|
923
|
+
params = {}
|
|
924
|
+
addOptionalParam(params, "filter__eq_id", filter.equalId);
|
|
925
|
+
addOptionalParam(params, "filter__gte_id", filter.greaterThanOrEqualId);
|
|
926
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
927
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
928
|
+
addOptionalParam(params, "filter__in_profile_type", filter.inProfileType);
|
|
929
|
+
addOptionalParam(params, "filter__eq_enabled", filter.equalEnabled);
|
|
930
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
931
|
+
addOptionalParam(params, "filter__eq_use_with_bulk", filter.equalUseWithBulk);
|
|
932
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
933
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
934
|
+
addOptionalParam(params, "detailed", detailed);
|
|
935
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
936
|
+
addOptionalParam(params, "page", page);
|
|
937
|
+
|
|
938
|
+
hit("listconversionprofiles", kalturaSessionUser, params);
|
|
939
|
+
end
|
|
940
|
+
|
|
941
|
+
def listDownloads(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1)
|
|
942
|
+
params = {}
|
|
943
|
+
addOptionalParam(params, "filter__eq_id", filter.equalId);
|
|
944
|
+
addOptionalParam(params, "filter__gte_id", filter.greaterThanOrEqualId);
|
|
945
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
946
|
+
addOptionalParam(params, "filter__eq_job_type", filter.equalJobType);
|
|
947
|
+
addOptionalParam(params, "filter__in_job_type", filter.inJobType);
|
|
948
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
949
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
950
|
+
addOptionalParam(params, "detailed", detailed);
|
|
951
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
952
|
+
addOptionalParam(params, "page", page);
|
|
953
|
+
|
|
954
|
+
hit("listdownloads", kalturaSessionUser, params);
|
|
955
|
+
end
|
|
956
|
+
|
|
957
|
+
def listDvdEntries(kalturaSessionUser, filter, detailed = nil, detailedFields = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
958
|
+
params = {}
|
|
959
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
960
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
961
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
962
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
963
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
964
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
965
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
966
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
967
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
968
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
969
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
970
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
971
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
972
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
973
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
974
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
975
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
976
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
977
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
978
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
979
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
980
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
981
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
982
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
983
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
984
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
985
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
986
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
987
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
988
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
989
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
990
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
991
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
992
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
993
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
994
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
995
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
996
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
997
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
998
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
999
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1000
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1001
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1002
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1003
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1004
|
+
addOptionalParam(params, "detailed_fields", detailedFields);
|
|
1005
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1006
|
+
addOptionalParam(params, "page", page);
|
|
1007
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1008
|
+
|
|
1009
|
+
hit("listdvdentries", kalturaSessionUser, params);
|
|
1010
|
+
end
|
|
1011
|
+
|
|
1012
|
+
def listEntries(kalturaSessionUser, filter, detailed = nil, detailedFields = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1013
|
+
params = {}
|
|
1014
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
1015
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
1016
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1017
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1018
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1019
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
1020
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
1021
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
1022
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
1023
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
1024
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1025
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
1026
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
1027
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1028
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1029
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1030
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
1031
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
1032
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
1033
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
1034
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
1035
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
1036
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
1037
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1038
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1039
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1040
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1041
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
1042
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
1043
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
1044
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
1045
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
1046
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
1047
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
1048
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
1049
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
1050
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
1051
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
1052
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
1053
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
1054
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1055
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1056
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1057
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1058
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1059
|
+
addOptionalParam(params, "detailed_fields", detailedFields);
|
|
1060
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1061
|
+
addOptionalParam(params, "page", page);
|
|
1062
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1063
|
+
|
|
1064
|
+
hit("listentries", kalturaSessionUser, params);
|
|
1065
|
+
end
|
|
1066
|
+
|
|
1067
|
+
def listKShows(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1068
|
+
params = {}
|
|
1069
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1070
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1071
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1072
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1073
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1074
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1075
|
+
addOptionalParam(params, "filter__eq_producer_id", filter.equalProducerId);
|
|
1076
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1077
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1078
|
+
addOptionalParam(params, "filter__bitand_status", filter.bitAndStatus);
|
|
1079
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_3", filter.equalIndexedCustomData3);
|
|
1080
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1081
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1082
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1083
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1084
|
+
addOptionalParam(params, "page", page);
|
|
1085
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1086
|
+
|
|
1087
|
+
hit("listkshows", kalturaSessionUser, params);
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
def listModerations(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1)
|
|
1091
|
+
params = {}
|
|
1092
|
+
addOptionalParam(params, "filter__eq_id", filter.equalId);
|
|
1093
|
+
addOptionalParam(params, "filter__eq_puser_id", filter.equalPuserId);
|
|
1094
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1095
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1096
|
+
addOptionalParam(params, "filter__like_comments", filter.likeComments);
|
|
1097
|
+
addOptionalParam(params, "filter__eq_object_id", filter.equalObjectId);
|
|
1098
|
+
addOptionalParam(params, "filter__eq_object_type", filter.equalObjectType);
|
|
1099
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1100
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1101
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1102
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1103
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1104
|
+
addOptionalParam(params, "page", page);
|
|
1105
|
+
|
|
1106
|
+
hit("listmoderations", kalturaSessionUser, params);
|
|
1107
|
+
end
|
|
1108
|
+
|
|
1109
|
+
def listMyDvdEntries(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1110
|
+
params = {}
|
|
1111
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
1112
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
1113
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1114
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1115
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1116
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
1117
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
1118
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
1119
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
1120
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
1121
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1122
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
1123
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
1124
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1125
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1126
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1127
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
1128
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
1129
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
1130
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
1131
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
1132
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
1133
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
1134
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1135
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1136
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1137
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1138
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
1139
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
1140
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
1141
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
1142
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
1143
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
1144
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
1145
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
1146
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
1147
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
1148
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
1149
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
1150
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
1151
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1152
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1153
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1154
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1155
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1156
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1157
|
+
addOptionalParam(params, "page", page);
|
|
1158
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1159
|
+
|
|
1160
|
+
hit("listmydvdentries", kalturaSessionUser, params);
|
|
1161
|
+
end
|
|
1162
|
+
|
|
1163
|
+
def listMyEntries(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1164
|
+
params = {}
|
|
1165
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
1166
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
1167
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1168
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1169
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1170
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
1171
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
1172
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
1173
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
1174
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
1175
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1176
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
1177
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
1178
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1179
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1180
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1181
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
1182
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
1183
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
1184
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
1185
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
1186
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
1187
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
1188
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1189
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1190
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1191
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1192
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
1193
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
1194
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
1195
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
1196
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
1197
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
1198
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
1199
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
1200
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
1201
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
1202
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
1203
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
1204
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
1205
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1206
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1207
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1208
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1209
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1210
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1211
|
+
addOptionalParam(params, "page", page);
|
|
1212
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1213
|
+
|
|
1214
|
+
hit("listmyentries", kalturaSessionUser, params);
|
|
1215
|
+
end
|
|
1216
|
+
|
|
1217
|
+
def listMyKShows(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1218
|
+
params = {}
|
|
1219
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1220
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1221
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1222
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1223
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1224
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1225
|
+
addOptionalParam(params, "filter__eq_producer_id", filter.equalProducerId);
|
|
1226
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1227
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1228
|
+
addOptionalParam(params, "filter__bitand_status", filter.bitAndStatus);
|
|
1229
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_3", filter.equalIndexedCustomData3);
|
|
1230
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1231
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1232
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1233
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1234
|
+
addOptionalParam(params, "page", page);
|
|
1235
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1236
|
+
|
|
1237
|
+
hit("listmykshows", kalturaSessionUser, params);
|
|
1238
|
+
end
|
|
1239
|
+
|
|
1240
|
+
def listNotifications(kalturaSessionUser, filter, pageSize = 10, page = 1)
|
|
1241
|
+
params = {}
|
|
1242
|
+
addOptionalParam(params, "filter__eq_id", filter.equalId);
|
|
1243
|
+
addOptionalParam(params, "filter__gte_id", filter.greaterThanOrEqualId);
|
|
1244
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1245
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1246
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1247
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1248
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1249
|
+
addOptionalParam(params, "page", page);
|
|
1250
|
+
|
|
1251
|
+
hit("listnotifications", kalturaSessionUser, params);
|
|
1252
|
+
end
|
|
1253
|
+
|
|
1254
|
+
def listPartnerEntries(kalturaSessionUser, filter, detailed = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1255
|
+
params = {}
|
|
1256
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
1257
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
1258
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1259
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1260
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1261
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
1262
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
1263
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
1264
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
1265
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
1266
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1267
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
1268
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
1269
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1270
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1271
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1272
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
1273
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
1274
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
1275
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
1276
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
1277
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
1278
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
1279
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1280
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1281
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1282
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1283
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
1284
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
1285
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
1286
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
1287
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
1288
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
1289
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
1290
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
1291
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
1292
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
1293
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
1294
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
1295
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
1296
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1297
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1298
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1299
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1300
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1301
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1302
|
+
addOptionalParam(params, "page", page);
|
|
1303
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1304
|
+
|
|
1305
|
+
hit("listpartnerentries", kalturaSessionUser, params);
|
|
1306
|
+
end
|
|
1307
|
+
|
|
1308
|
+
def listPlaylists(kalturaSessionUser, filter, detailed = nil, detailedFields = nil, pageSize = 10, page = 1, useFilterPuserId = nil)
|
|
1309
|
+
params = {}
|
|
1310
|
+
addOptionalParam(params, "filter__eq_user_id", filter.equalUserId);
|
|
1311
|
+
addOptionalParam(params, "filter__eq_kshow_id", filter.equalKshowId);
|
|
1312
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1313
|
+
addOptionalParam(params, "filter__in_status", filter.inStatus);
|
|
1314
|
+
addOptionalParam(params, "filter__eq_type", filter.equalType);
|
|
1315
|
+
addOptionalParam(params, "filter__in_type", filter.inType);
|
|
1316
|
+
addOptionalParam(params, "filter__eq_media_type", filter.equalMediaType);
|
|
1317
|
+
addOptionalParam(params, "filter__in_media_type", filter.inMediaType);
|
|
1318
|
+
addOptionalParam(params, "filter__eq_indexed_custom_data_1", filter.equalIndexedCustomData1);
|
|
1319
|
+
addOptionalParam(params, "filter__in_indexed_custom_data_1", filter.inIndexedCustomData1);
|
|
1320
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1321
|
+
addOptionalParam(params, "filter__eq_name", filter.equalName);
|
|
1322
|
+
addOptionalParam(params, "filter__eq_tags", filter.equalTags);
|
|
1323
|
+
addOptionalParam(params, "filter__like_tags", filter.likeTags);
|
|
1324
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1325
|
+
addOptionalParam(params, "filter__mlikeand_tags", filter.multiLikeAndTags);
|
|
1326
|
+
addOptionalParam(params, "filter__mlikeor_admin_tags", filter.multiLikeOrAdminTags);
|
|
1327
|
+
addOptionalParam(params, "filter__mlikeand_admin_tags", filter.multiLikeAndAdminTags);
|
|
1328
|
+
addOptionalParam(params, "filter__like_admin_tags", filter.likeAdminTags);
|
|
1329
|
+
addOptionalParam(params, "filter__mlikeor_name", filter.multiLikeOrName);
|
|
1330
|
+
addOptionalParam(params, "filter__mlikeand_name", filter.multiLikeAndName);
|
|
1331
|
+
addOptionalParam(params, "filter__mlikeor_search_text", filter.multiLikeOrSearchText);
|
|
1332
|
+
addOptionalParam(params, "filter__mlikeand_search_text", filter.multiLikeAndSearchText);
|
|
1333
|
+
addOptionalParam(params, "filter__eq_group_id", filter.equalGroupId);
|
|
1334
|
+
addOptionalParam(params, "filter__gte_views", filter.greaterThanOrEqualViews);
|
|
1335
|
+
addOptionalParam(params, "filter__gte_created_at", filter.greaterThanOrEqualCreatedAt);
|
|
1336
|
+
addOptionalParam(params, "filter__lte_created_at", filter.lessThanOrEqualCreatedAt);
|
|
1337
|
+
addOptionalParam(params, "filter__gte_updated_at", filter.greaterThanOrEqualUpdatedAt);
|
|
1338
|
+
addOptionalParam(params, "filter__lte_updated_at", filter.lessThanOrEqualUpdatedAt);
|
|
1339
|
+
addOptionalParam(params, "filter__gte_modified_at", filter.greaterThanOrEqualModifiedAt);
|
|
1340
|
+
addOptionalParam(params, "filter__lte_modified_at", filter.lessThanOrEqualModifiedAt);
|
|
1341
|
+
addOptionalParam(params, "filter__in_partner_id", filter.inPartnerId);
|
|
1342
|
+
addOptionalParam(params, "filter__eq_partner_id", filter.equalPartnerId);
|
|
1343
|
+
addOptionalParam(params, "filter__eq_source_link", filter.equalSourceLink);
|
|
1344
|
+
addOptionalParam(params, "filter__gte_media_date", filter.greaterThanOrEqualMediaDate);
|
|
1345
|
+
addOptionalParam(params, "filter__lte_media_date", filter.lessThanOrEqualMediaDate);
|
|
1346
|
+
addOptionalParam(params, "filter__eq_moderation_status", filter.equalModerationStatus);
|
|
1347
|
+
addOptionalParam(params, "filter__in_moderation_status", filter.inModerationStatus);
|
|
1348
|
+
addOptionalParam(params, "filter__in_display_in_search", filter.inDisplayInSearch);
|
|
1349
|
+
addOptionalParam(params, "filter__mlikeor_tags-name", filter.multiLikeOrTagsOrName);
|
|
1350
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags", filter.multiLikeOrTagsOrAdminTags);
|
|
1351
|
+
addOptionalParam(params, "filter__mlikeor_tags-admin_tags-name", filter.multiLikeOrTagsOrAdminTagsOrName);
|
|
1352
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1353
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1354
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1355
|
+
addOptionalParam(params, "detailed_fields", detailedFields);
|
|
1356
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1357
|
+
addOptionalParam(params, "page", page);
|
|
1358
|
+
addOptionalParam(params, "use_filter_puser_id", useFilterPuserId);
|
|
1359
|
+
|
|
1360
|
+
hit("listplaylists", kalturaSessionUser, params);
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
def listUiconf(kalturaSessionUser, filter, detailed = nil, detailedFields = nil, pageSize = 10, page = 1)
|
|
1364
|
+
params = {}
|
|
1365
|
+
addOptionalParam(params, "filter__eq_id", filter.equalId);
|
|
1366
|
+
addOptionalParam(params, "filter__gte_id", filter.greaterThanOrEqualId);
|
|
1367
|
+
addOptionalParam(params, "filter__eq_status", filter.equalStatus);
|
|
1368
|
+
addOptionalParam(params, "filter__eq_obj_type", filter.equalObjType);
|
|
1369
|
+
addOptionalParam(params, "filter__like_name", filter.likeName);
|
|
1370
|
+
addOptionalParam(params, "filter__mlikeor_tags", filter.multiLikeOrTags);
|
|
1371
|
+
addOptionalParam(params, "filter__order_by", filter.orderBy);
|
|
1372
|
+
addOptionalParam(params, "filter__limit", filter.limit);
|
|
1373
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1374
|
+
addOptionalParam(params, "detailed_fields", detailedFields);
|
|
1375
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1376
|
+
addOptionalParam(params, "page", page);
|
|
1377
|
+
|
|
1378
|
+
hit("listuiconfs", kalturaSessionUser, params);
|
|
1379
|
+
end
|
|
1380
|
+
|
|
1381
|
+
def ping(kalturaSessionUser)
|
|
1382
|
+
params = {}
|
|
1383
|
+
|
|
1384
|
+
hit("ping", kalturaSessionUser, params);
|
|
1385
|
+
end
|
|
1386
|
+
|
|
1387
|
+
def queuePendingBatchJob(kalturaSessionUser, jobType, processorName, processorTimeout, overQuotaPartners = nil, deferedPartners = nil)
|
|
1388
|
+
params = {}
|
|
1389
|
+
params["job_type"] = jobType;
|
|
1390
|
+
params["processor_name"] = processorName;
|
|
1391
|
+
params["processor_timeout"] = processorTimeout;
|
|
1392
|
+
addOptionalParam(params, "over_quota_partners", overQuotaPartners);
|
|
1393
|
+
addOptionalParam(params, "defered_partners", deferedPartners);
|
|
1394
|
+
|
|
1395
|
+
hit("queuependingbatchjob", kalturaSessionUser, params);
|
|
1396
|
+
end
|
|
1397
|
+
|
|
1398
|
+
def rankKShow(kalturaSessionUser, kshowId, rank)
|
|
1399
|
+
params = {}
|
|
1400
|
+
params["kshow_id"] = kshowId;
|
|
1401
|
+
params["rank"] = rank;
|
|
1402
|
+
|
|
1403
|
+
hit("rankkshow", kalturaSessionUser, params);
|
|
1404
|
+
end
|
|
1405
|
+
|
|
1406
|
+
def registerPartner(kalturaSessionUser, partner, cmsPassword = nil)
|
|
1407
|
+
params = {}
|
|
1408
|
+
addOptionalParam(params, "partner_name", partner.name);
|
|
1409
|
+
addOptionalParam(params, "partner_url1", partner.url1);
|
|
1410
|
+
addOptionalParam(params, "partner_url2", partner.url2);
|
|
1411
|
+
addOptionalParam(params, "partner_appearInSearch", partner.appearInSearch);
|
|
1412
|
+
addOptionalParam(params, "partner_adminName", partner.adminName);
|
|
1413
|
+
addOptionalParam(params, "partner_adminEmail", partner.adminEmail);
|
|
1414
|
+
addOptionalParam(params, "partner_description", partner.description);
|
|
1415
|
+
addOptionalParam(params, "partner_commercialUse", partner.commercialUse);
|
|
1416
|
+
addOptionalParam(params, "partner_landingPage", partner.landingPage);
|
|
1417
|
+
addOptionalParam(params, "partner_userLandingPage", partner.userLandingPage);
|
|
1418
|
+
addOptionalParam(params, "partner_notificationsConfig", partner.notificationsConfig);
|
|
1419
|
+
addOptionalParam(params, "partner_notify", partner.notify);
|
|
1420
|
+
addOptionalParam(params, "partner_allowMultiNotification", partner.allowMultiNotification);
|
|
1421
|
+
addOptionalParam(params, "partner_contentCategories", partner.contentCategories);
|
|
1422
|
+
addOptionalParam(params, "partner_type", partner.type);
|
|
1423
|
+
addOptionalParam(params, "cms_password", cmsPassword);
|
|
1424
|
+
|
|
1425
|
+
hit("registerpartner", kalturaSessionUser, params);
|
|
1426
|
+
end
|
|
1427
|
+
|
|
1428
|
+
def reportEntry(kalturaSessionUser, moderation)
|
|
1429
|
+
params = {}
|
|
1430
|
+
addOptionalParam(params, "moderation_comments", moderation.comments);
|
|
1431
|
+
addOptionalParam(params, "moderation_objectType", moderation.objectType);
|
|
1432
|
+
addOptionalParam(params, "moderation_objectId", moderation.objectId);
|
|
1433
|
+
addOptionalParam(params, "moderation_reportCode", moderation.reportCode);
|
|
1434
|
+
addOptionalParam(params, "moderation_status", moderation.status);
|
|
1435
|
+
|
|
1436
|
+
hit("reportentry", kalturaSessionUser, params);
|
|
1437
|
+
end
|
|
1438
|
+
|
|
1439
|
+
def reportError(kalturaSessionUser, reportingObj = nil, errorCode = nil, errorDescription = nil)
|
|
1440
|
+
params = {}
|
|
1441
|
+
addOptionalParam(params, "reporting_obj", reportingObj);
|
|
1442
|
+
addOptionalParam(params, "error_code", errorCode);
|
|
1443
|
+
addOptionalParam(params, "error_description", errorDescription);
|
|
1444
|
+
|
|
1445
|
+
hit("reporterror", kalturaSessionUser, params);
|
|
1446
|
+
end
|
|
1447
|
+
|
|
1448
|
+
def reportKShow(kalturaSessionUser, moderation)
|
|
1449
|
+
params = {}
|
|
1450
|
+
addOptionalParam(params, "moderation_comments", moderation.comments);
|
|
1451
|
+
addOptionalParam(params, "moderation_objectType", moderation.objectType);
|
|
1452
|
+
addOptionalParam(params, "moderation_objectId", moderation.objectId);
|
|
1453
|
+
addOptionalParam(params, "moderation_reportCode", moderation.reportCode);
|
|
1454
|
+
addOptionalParam(params, "moderation_status", moderation.status);
|
|
1455
|
+
|
|
1456
|
+
hit("reportkshow", kalturaSessionUser, params);
|
|
1457
|
+
end
|
|
1458
|
+
|
|
1459
|
+
def reportUser(kalturaSessionUser, moderation)
|
|
1460
|
+
params = {}
|
|
1461
|
+
addOptionalParam(params, "moderation_comments", moderation.comments);
|
|
1462
|
+
addOptionalParam(params, "moderation_objectType", moderation.objectType);
|
|
1463
|
+
addOptionalParam(params, "moderation_objectId", moderation.objectId);
|
|
1464
|
+
addOptionalParam(params, "moderation_reportCode", moderation.reportCode);
|
|
1465
|
+
addOptionalParam(params, "moderation_status", moderation.status);
|
|
1466
|
+
|
|
1467
|
+
hit("reportuser", kalturaSessionUser, params);
|
|
1468
|
+
end
|
|
1469
|
+
|
|
1470
|
+
def rollbackKShow(kalturaSessionUser, kshowId, kshowVersion)
|
|
1471
|
+
params = {}
|
|
1472
|
+
params["kshow_id"] = kshowId;
|
|
1473
|
+
params["kshow_version"] = kshowVersion;
|
|
1474
|
+
|
|
1475
|
+
hit("rollbackkshow", kalturaSessionUser, params);
|
|
1476
|
+
end
|
|
1477
|
+
|
|
1478
|
+
def search(kalturaSessionUser, mediaType, mediaSource, search, authData = nil, page = 1, pageSize = 10)
|
|
1479
|
+
params = {}
|
|
1480
|
+
params["media_type"] = mediaType;
|
|
1481
|
+
params["media_source"] = mediaSource;
|
|
1482
|
+
params["search"] = search;
|
|
1483
|
+
addOptionalParam(params, "auth_data", authData);
|
|
1484
|
+
addOptionalParam(params, "page", page);
|
|
1485
|
+
addOptionalParam(params, "page_size", pageSize);
|
|
1486
|
+
|
|
1487
|
+
hit("search", kalturaSessionUser, params);
|
|
1488
|
+
end
|
|
1489
|
+
|
|
1490
|
+
def searchAuthData(kalturaSessionUser, mediaSource, username, password)
|
|
1491
|
+
params = {}
|
|
1492
|
+
params["media_source"] = mediaSource;
|
|
1493
|
+
params["username"] = username;
|
|
1494
|
+
params["password"] = password;
|
|
1495
|
+
|
|
1496
|
+
hit("searchauthdata", kalturaSessionUser, params);
|
|
1497
|
+
end
|
|
1498
|
+
|
|
1499
|
+
def searchFromUrl(kalturaSessionUser, url, mediaType)
|
|
1500
|
+
params = {}
|
|
1501
|
+
params["url"] = url;
|
|
1502
|
+
params["media_type"] = mediaType;
|
|
1503
|
+
|
|
1504
|
+
hit("searchfromurl", kalturaSessionUser, params);
|
|
1505
|
+
end
|
|
1506
|
+
|
|
1507
|
+
def searchMediaInfo(kalturaSessionUser, mediaType, mediaSource, mediaId)
|
|
1508
|
+
params = {}
|
|
1509
|
+
params["media_type"] = mediaType;
|
|
1510
|
+
params["media_source"] = mediaSource;
|
|
1511
|
+
params["media_id"] = mediaId;
|
|
1512
|
+
|
|
1513
|
+
hit("searchmediainfo", kalturaSessionUser, params);
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
def searchmediaproviders(kalturaSessionUser)
|
|
1517
|
+
params = {}
|
|
1518
|
+
|
|
1519
|
+
hit("searchmediaproviders", kalturaSessionUser, params);
|
|
1520
|
+
end
|
|
1521
|
+
|
|
1522
|
+
def setMetaData(kalturaSessionUser, entryId, kshowId, hasRoughCut, xml)
|
|
1523
|
+
params = {}
|
|
1524
|
+
params["entry_id"] = entryId;
|
|
1525
|
+
params["kshow_id"] = kshowId;
|
|
1526
|
+
params["HasRoughCut"] = hasRoughCut;
|
|
1527
|
+
params["xml"] = xml;
|
|
1528
|
+
|
|
1529
|
+
hit("setmetadata", kalturaSessionUser, params);
|
|
1530
|
+
end
|
|
1531
|
+
|
|
1532
|
+
def startSession(kalturaSessionUser, secret, admin = nil, privileges = nil, expiry = 86400)
|
|
1533
|
+
params = {}
|
|
1534
|
+
params["secret"] = secret;
|
|
1535
|
+
addOptionalParam(params, "admin", admin);
|
|
1536
|
+
addOptionalParam(params, "privileges", privileges);
|
|
1537
|
+
addOptionalParam(params, "expiry", expiry);
|
|
1538
|
+
|
|
1539
|
+
hit("startsession", kalturaSessionUser, params);
|
|
1540
|
+
end
|
|
1541
|
+
|
|
1542
|
+
def startWidgetSession(kalturaSessionUser, widgetId, expiry = 86400)
|
|
1543
|
+
params = {}
|
|
1544
|
+
params["widget_id"] = widgetId;
|
|
1545
|
+
addOptionalParam(params, "expiry", expiry);
|
|
1546
|
+
|
|
1547
|
+
hit("startwidgetsession", kalturaSessionUser, params);
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
def testNotification(kalturaSessionUser)
|
|
1551
|
+
params = {}
|
|
1552
|
+
|
|
1553
|
+
hit("testnotification", kalturaSessionUser, params);
|
|
1554
|
+
end
|
|
1555
|
+
|
|
1556
|
+
def updateBatchJob(kalturaSessionUser, batchjobId, batchjob)
|
|
1557
|
+
params = {}
|
|
1558
|
+
params["batchjob_id"] = batchjobId;
|
|
1559
|
+
addOptionalParam(params, "batchjob_data", batchjob.data);
|
|
1560
|
+
addOptionalParam(params, "batchjob_status", batchjob.status);
|
|
1561
|
+
addOptionalParam(params, "batchjob_abort", batchjob.abort);
|
|
1562
|
+
addOptionalParam(params, "batchjob_checkAgainTimeout", batchjob.checkAgainTimeout);
|
|
1563
|
+
addOptionalParam(params, "batchjob_progress", batchjob.progress);
|
|
1564
|
+
addOptionalParam(params, "batchjob_message", batchjob.message);
|
|
1565
|
+
addOptionalParam(params, "batchjob_description", batchjob.description);
|
|
1566
|
+
addOptionalParam(params, "batchjob_updatesCount", batchjob.updatesCount);
|
|
1567
|
+
addOptionalParam(params, "batchjob_processorExpiration", batchjob.processorExpiration);
|
|
1568
|
+
|
|
1569
|
+
hit("updatebatchjob", kalturaSessionUser, params);
|
|
1570
|
+
end
|
|
1571
|
+
|
|
1572
|
+
def updateDvdEntry(kalturaSessionUser, entryId, entry)
|
|
1573
|
+
params = {}
|
|
1574
|
+
params["entry_id"] = entryId;
|
|
1575
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
1576
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
1577
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
1578
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
1579
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
1580
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
1581
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
1582
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
1583
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
1584
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
1585
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
1586
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
1587
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
1588
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
1589
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
1590
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
1591
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
1592
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
1593
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
1594
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
1595
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
1596
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
1597
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
1598
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
1599
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
1600
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
1601
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
1602
|
+
|
|
1603
|
+
hit("updatedvdentry", kalturaSessionUser, params);
|
|
1604
|
+
end
|
|
1605
|
+
|
|
1606
|
+
def updateEntriesThumbnails(kalturaSessionUser, entryIds, timeOffset)
|
|
1607
|
+
params = {}
|
|
1608
|
+
params["entry_ids"] = entryIds;
|
|
1609
|
+
params["time_offset"] = timeOffset;
|
|
1610
|
+
|
|
1611
|
+
hit("updateentriesthumbnails", kalturaSessionUser, params);
|
|
1612
|
+
end
|
|
1613
|
+
|
|
1614
|
+
def updateEntry(kalturaSessionUser, entryId, entry, allowEmptyField = nil)
|
|
1615
|
+
params = {}
|
|
1616
|
+
params["entry_id"] = entryId;
|
|
1617
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
1618
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
1619
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
1620
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
1621
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
1622
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
1623
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
1624
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
1625
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
1626
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
1627
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
1628
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
1629
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
1630
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
1631
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
1632
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
1633
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
1634
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
1635
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
1636
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
1637
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
1638
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
1639
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
1640
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
1641
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
1642
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
1643
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
1644
|
+
addOptionalParam(params, "allow_empty_field", allowEmptyField);
|
|
1645
|
+
|
|
1646
|
+
hit("updateentry", kalturaSessionUser, params);
|
|
1647
|
+
end
|
|
1648
|
+
|
|
1649
|
+
def updateEntryTModeration(kalturaSessionUser, entryId, moderationStatus)
|
|
1650
|
+
params = {}
|
|
1651
|
+
params["entry_id"] = entryId;
|
|
1652
|
+
params["moderation_status"] = moderationStatus;
|
|
1653
|
+
|
|
1654
|
+
hit("updateentrymoderation", kalturaSessionUser, params);
|
|
1655
|
+
end
|
|
1656
|
+
|
|
1657
|
+
def updateEntryThumbnail(kalturaSessionUser, entryId, sourceEntryId = nil, timeOffset = nil)
|
|
1658
|
+
params = {}
|
|
1659
|
+
params["entry_id"] = entryId;
|
|
1660
|
+
addOptionalParam(params, "source_entry_id", sourceEntryId);
|
|
1661
|
+
addOptionalParam(params, "time_offset", timeOffset);
|
|
1662
|
+
|
|
1663
|
+
hit("updateentrythumbnail", kalturaSessionUser, params);
|
|
1664
|
+
end
|
|
1665
|
+
|
|
1666
|
+
def updateEntryThumbnailJpeg(kalturaSessionUser, entryId)
|
|
1667
|
+
params = {}
|
|
1668
|
+
params["entry_id"] = entryId;
|
|
1669
|
+
|
|
1670
|
+
hit("updateentrythumbnailjpeg", kalturaSessionUser, params);
|
|
1671
|
+
end
|
|
1672
|
+
|
|
1673
|
+
def updateKShow(kalturaSessionUser, kshowId, kshow, detailed = nil, allowDuplicateNames = nil)
|
|
1674
|
+
params = {}
|
|
1675
|
+
params["kshow_id"] = kshowId;
|
|
1676
|
+
addOptionalParam(params, "kshow_name", kshow.name);
|
|
1677
|
+
addOptionalParam(params, "kshow_description", kshow.description);
|
|
1678
|
+
addOptionalParam(params, "kshow_tags", kshow.tags);
|
|
1679
|
+
addOptionalParam(params, "kshow_indexedCustomData3", kshow.indexedCustomData3);
|
|
1680
|
+
addOptionalParam(params, "kshow_groupId", kshow.groupId);
|
|
1681
|
+
addOptionalParam(params, "kshow_permissions", kshow.permissions);
|
|
1682
|
+
addOptionalParam(params, "kshow_partnerData", kshow.partnerData);
|
|
1683
|
+
addOptionalParam(params, "kshow_allowQuickEdit", kshow.allowQuickEdit);
|
|
1684
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1685
|
+
addOptionalParam(params, "allow_duplicate_names", allowDuplicateNames);
|
|
1686
|
+
|
|
1687
|
+
hit("updatekshow", kalturaSessionUser, params);
|
|
1688
|
+
end
|
|
1689
|
+
|
|
1690
|
+
def updateKshowOwner(kalturaSessionUser, kshowId, detailed = nil)
|
|
1691
|
+
params = {}
|
|
1692
|
+
params["kshow_id"] = kshowId;
|
|
1693
|
+
addOptionalParam(params, "detailed", detailed);
|
|
1694
|
+
|
|
1695
|
+
hit("updatekshowowner", kalturaSessionUser, params);
|
|
1696
|
+
end
|
|
1697
|
+
|
|
1698
|
+
def updateNotification(kalturaSessionUser, notification)
|
|
1699
|
+
params = {}
|
|
1700
|
+
addOptionalParam(params, "notification_id", notification.id);
|
|
1701
|
+
addOptionalParam(params, "notification_status", notification.status);
|
|
1702
|
+
addOptionalParam(params, "notification_notificationResult", notification.notificationResult);
|
|
1703
|
+
|
|
1704
|
+
hit("updatenotification", kalturaSessionUser, params);
|
|
1705
|
+
end
|
|
1706
|
+
|
|
1707
|
+
def updatePartner(kalturaSessionUser, partner)
|
|
1708
|
+
params = {}
|
|
1709
|
+
addOptionalParam(params, "partner_name", partner.name);
|
|
1710
|
+
addOptionalParam(params, "partner_url1", partner.url1);
|
|
1711
|
+
addOptionalParam(params, "partner_url2", partner.url2);
|
|
1712
|
+
addOptionalParam(params, "partner_appearInSearch", partner.appearInSearch);
|
|
1713
|
+
addOptionalParam(params, "partner_adminName", partner.adminName);
|
|
1714
|
+
addOptionalParam(params, "partner_adminEmail", partner.adminEmail);
|
|
1715
|
+
addOptionalParam(params, "partner_description", partner.description);
|
|
1716
|
+
addOptionalParam(params, "partner_commercialUse", partner.commercialUse);
|
|
1717
|
+
addOptionalParam(params, "partner_landingPage", partner.landingPage);
|
|
1718
|
+
addOptionalParam(params, "partner_userLandingPage", partner.userLandingPage);
|
|
1719
|
+
addOptionalParam(params, "partner_notificationsConfig", partner.notificationsConfig);
|
|
1720
|
+
addOptionalParam(params, "partner_notify", partner.notify);
|
|
1721
|
+
addOptionalParam(params, "partner_allowMultiNotification", partner.allowMultiNotification);
|
|
1722
|
+
addOptionalParam(params, "partner_contentCategories", partner.contentCategories);
|
|
1723
|
+
addOptionalParam(params, "partner_type", partner.type);
|
|
1724
|
+
|
|
1725
|
+
hit("updatepartner", kalturaSessionUser, params);
|
|
1726
|
+
end
|
|
1727
|
+
|
|
1728
|
+
def updatePlaylist(kalturaSessionUser, entryId, entry)
|
|
1729
|
+
params = {}
|
|
1730
|
+
params["entry_id"] = entryId;
|
|
1731
|
+
addOptionalParam(params, "entry_name", entry.name);
|
|
1732
|
+
addOptionalParam(params, "entry_tags", entry.tags);
|
|
1733
|
+
addOptionalParam(params, "entry_type", entry.type);
|
|
1734
|
+
addOptionalParam(params, "entry_mediaType", entry.mediaType);
|
|
1735
|
+
addOptionalParam(params, "entry_source", entry.source);
|
|
1736
|
+
addOptionalParam(params, "entry_sourceId", entry.sourceId);
|
|
1737
|
+
addOptionalParam(params, "entry_sourceLink", entry.sourceLink);
|
|
1738
|
+
addOptionalParam(params, "entry_licenseType", entry.licenseType);
|
|
1739
|
+
addOptionalParam(params, "entry_credit", entry.credit);
|
|
1740
|
+
addOptionalParam(params, "entry_groupId", entry.groupId);
|
|
1741
|
+
addOptionalParam(params, "entry_partnerData", entry.partnerData);
|
|
1742
|
+
addOptionalParam(params, "entry_conversionQuality", entry.conversionQuality);
|
|
1743
|
+
addOptionalParam(params, "entry_permissions", entry.permissions);
|
|
1744
|
+
addOptionalParam(params, "entry_dataContent", entry.dataContent);
|
|
1745
|
+
addOptionalParam(params, "entry_desiredVersion", entry.desiredVersion);
|
|
1746
|
+
addOptionalParam(params, "entry_url", entry.url);
|
|
1747
|
+
addOptionalParam(params, "entry_thumbUrl", entry.thumbUrl);
|
|
1748
|
+
addOptionalParam(params, "entry_filename", entry.filename);
|
|
1749
|
+
addOptionalParam(params, "entry_realFilename", entry.realFilename);
|
|
1750
|
+
addOptionalParam(params, "entry_indexedCustomData1", entry.indexedCustomData1);
|
|
1751
|
+
addOptionalParam(params, "entry_thumbOffset", entry.thumbOffset);
|
|
1752
|
+
addOptionalParam(params, "entry_mediaId", entry.mediaId);
|
|
1753
|
+
addOptionalParam(params, "entry_screenName", entry.screenName);
|
|
1754
|
+
addOptionalParam(params, "entry_siteUrl", entry.siteUrl);
|
|
1755
|
+
addOptionalParam(params, "entry_description", entry.description);
|
|
1756
|
+
addOptionalParam(params, "entry_mediaDate", entry.mediaDate);
|
|
1757
|
+
addOptionalParam(params, "entry_adminTags", entry.adminTags);
|
|
1758
|
+
|
|
1759
|
+
hit("updateplaylist", kalturaSessionUser, params);
|
|
1760
|
+
end
|
|
1761
|
+
|
|
1762
|
+
def updateUiconf(kalturaSessionUser, uiconfId, uiconf)
|
|
1763
|
+
params = {}
|
|
1764
|
+
params["uiconf_id"] = uiconfId;
|
|
1765
|
+
addOptionalParam(params, "uiconf_name", uiconf.name);
|
|
1766
|
+
addOptionalParam(params, "uiconf_objType", uiconf.objType);
|
|
1767
|
+
addOptionalParam(params, "uiconf_width", uiconf.width);
|
|
1768
|
+
addOptionalParam(params, "uiconf_height", uiconf.height);
|
|
1769
|
+
addOptionalParam(params, "uiconf_htmlParams", uiconf.htmlParams);
|
|
1770
|
+
addOptionalParam(params, "uiconf_swfUrl", uiconf.swfUrl);
|
|
1771
|
+
addOptionalParam(params, "uiconf_swfUrlVersion", uiconf.swfUrlVersion);
|
|
1772
|
+
addOptionalParam(params, "uiconf_confFile", uiconf.confFile);
|
|
1773
|
+
addOptionalParam(params, "uiconf_confVars", uiconf.confVars);
|
|
1774
|
+
addOptionalParam(params, "uiconf_useCdn", uiconf.useCdn);
|
|
1775
|
+
addOptionalParam(params, "uiconf_tags", uiconf.tags);
|
|
1776
|
+
|
|
1777
|
+
hit("updateuiconf", kalturaSessionUser, params);
|
|
1778
|
+
end
|
|
1779
|
+
|
|
1780
|
+
def updateUser(kalturaSessionUser, userId, user)
|
|
1781
|
+
params = {}
|
|
1782
|
+
params["user_id"] = userId;
|
|
1783
|
+
addOptionalParam(params, "user_screenName", user.screenName);
|
|
1784
|
+
addOptionalParam(params, "user_fullName", user.fullName);
|
|
1785
|
+
addOptionalParam(params, "user_email", user.email);
|
|
1786
|
+
addOptionalParam(params, "user_dateOfBirth", user.dateOfBirth);
|
|
1787
|
+
addOptionalParam(params, "user_aboutMe", user.aboutMe);
|
|
1788
|
+
addOptionalParam(params, "user_tags", user.tags);
|
|
1789
|
+
addOptionalParam(params, "user_gender", user.gender);
|
|
1790
|
+
addOptionalParam(params, "user_country", user.country);
|
|
1791
|
+
addOptionalParam(params, "user_state", user.state);
|
|
1792
|
+
addOptionalParam(params, "user_city", user.city);
|
|
1793
|
+
addOptionalParam(params, "user_zip", user.zip);
|
|
1794
|
+
addOptionalParam(params, "user_urlList", user.urlList);
|
|
1795
|
+
addOptionalParam(params, "user_networkHighschool", user.networkHighschool);
|
|
1796
|
+
addOptionalParam(params, "user_networkCollege", user.networkCollege);
|
|
1797
|
+
addOptionalParam(params, "user_partnerData", user.partnerData);
|
|
1798
|
+
|
|
1799
|
+
hit("updateuser", kalturaSessionUser, params);
|
|
1800
|
+
end
|
|
1801
|
+
|
|
1802
|
+
def updateUserId(kalturaSessionUser, userId, newUserId)
|
|
1803
|
+
params = {}
|
|
1804
|
+
params["user_id"] = userId;
|
|
1805
|
+
params["new_user_id"] = newUserId;
|
|
1806
|
+
|
|
1807
|
+
hit("updateuserid", kalturaSessionUser, params);
|
|
1808
|
+
end
|
|
1809
|
+
|
|
1810
|
+
def upload(kalturaSessionUser, filename)
|
|
1811
|
+
params = {}
|
|
1812
|
+
params["filename"] = filename;
|
|
1813
|
+
|
|
1814
|
+
hit("upload", kalturaSessionUser, params);
|
|
1815
|
+
end
|
|
1816
|
+
|
|
1817
|
+
def uploadJpeg(kalturaSessionUser, filename, hash)
|
|
1818
|
+
params = {}
|
|
1819
|
+
params["filename"] = filename;
|
|
1820
|
+
params["hash"] = hash;
|
|
1821
|
+
|
|
1822
|
+
hit("uploadjpeg", kalturaSessionUser, params);
|
|
1823
|
+
end
|
|
1824
|
+
|
|
1825
|
+
def viewWidget(kalturaSessionUser, entryId = nil, kshowId = nil, widgetId = nil, host = nil)
|
|
1826
|
+
params = {}
|
|
1827
|
+
addOptionalParam(params, "entry_id", entryId);
|
|
1828
|
+
addOptionalParam(params, "kshow_id", kshowId);
|
|
1829
|
+
addOptionalParam(params, "widget_id", widgetId);
|
|
1830
|
+
addOptionalParam(params, "host", host);
|
|
1831
|
+
|
|
1832
|
+
hit("viewwidget", kalturaSessionUser, params);
|
|
1833
|
+
end
|
|
1834
|
+
|
|
1835
|
+
end
|
|
1836
|
+
end
|