velir_kaltura-ruby 0.3.7 → 0.4.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/README.markdown +1 -1
- data/README.rdoc +1 -1
- data/VERSION.yml +3 -3
- data/lib/kaltura/filter/access_control_filter.rb +20 -0
- data/lib/kaltura/filter/base_entry_filter.rb +115 -0
- data/lib/kaltura/filter/base_filter.rb +7 -0
- data/lib/kaltura/filter/base_job_filter.rb +28 -0
- data/lib/kaltura/filter/batch_job_filter.rb +54 -0
- data/lib/kaltura/filter/category_filter.rb +23 -0
- data/lib/kaltura/filter/control_panel_command_filter.rb +39 -0
- data/lib/kaltura/filter/conversion_profile_filter.rb +12 -0
- data/lib/kaltura/filter/document_entry_filter.rb +12 -0
- data/lib/kaltura/filter/file_sync_filter.rb +93 -0
- data/lib/kaltura/filter/flavor_params_filter.rb +11 -0
- data/lib/kaltura/filter/flavor_params_output_filter.rb +14 -0
- data/lib/kaltura/filter/media_entry_filter.rb +22 -0
- data/lib/kaltura/filter/media_entry_filter_for_playlist.rb +11 -0
- data/lib/kaltura/filter/partner_filter.rb +22 -0
- data/lib/kaltura/filter/playable_entry_filter.rb +40 -0
- data/lib/kaltura/filter/report_input_filter.rb +25 -0
- data/lib/kaltura/filter/system_partner_usage_filter.rb +15 -0
- data/lib/kaltura/filter/ui_conf_filter.rb +40 -0
- data/lib/kaltura/filter/user_filter.rb +27 -0
- data/lib/kaltura/filter/widget_filter.rb +37 -0
- data/lib/kaltura/filter.rb +27 -623
- data/lib/kaltura/kaltura_client.rb +61 -61
- data/lib/kaltura/kaltura_client_base.rb +18 -17
- data/lib/kaltura/response.rb +4 -4
- data/lib/kaltura/service/access_control_service.rb +38 -0
- data/lib/kaltura/service/admin_user_service.rb +28 -0
- data/lib/kaltura/service/base_entry_service.rb +120 -0
- data/lib/kaltura/service/base_service.rb +20 -0
- data/lib/kaltura/service/bulk_upload_service.rb +25 -0
- data/lib/kaltura/service/category_service.rb +37 -0
- data/lib/kaltura/service/conversion_profile_service.rb +38 -0
- data/lib/kaltura/service/data_service.rb +39 -0
- data/lib/kaltura/service/email_ingestion_profile_service.rb +47 -0
- data/lib/kaltura/service/flavor_asset_service.rb +55 -0
- data/lib/kaltura/service/flavor_params_service.rb +44 -0
- data/lib/kaltura/service/live_stream_service.rb +53 -0
- data/lib/kaltura/service/media_service.rb +149 -0
- data/lib/kaltura/service/mixing_service.rb +86 -0
- data/lib/kaltura/service/notification_service.rb +13 -0
- data/lib/kaltura/service/partner_service.rb +41 -0
- data/lib/kaltura/service/playlist_service.rb +73 -0
- data/lib/kaltura/service/report_service.rb +47 -0
- data/lib/kaltura/service/search_service.rb +34 -0
- data/lib/kaltura/service/session_service.rb +24 -0
- data/lib/kaltura/service/stats_service.rb +24 -0
- data/lib/kaltura/service/syndication_feed_service.rb +50 -0
- data/lib/kaltura/service/system_partner_service.rb +58 -0
- data/lib/kaltura/service/system_service.rb +11 -0
- data/lib/kaltura/service/system_user_service.rb +63 -0
- data/lib/kaltura/service/ui_conf_service.rb +51 -0
- data/lib/kaltura/service/upload_service.rb +18 -0
- data/lib/kaltura/service/user_service.rb +44 -0
- data/lib/kaltura/service/widget_service.rb +38 -0
- data/lib/kaltura/service/x_internal_service.rb +13 -0
- data/lib/kaltura/service.rb +32 -1295
- data/velir_kaltura-ruby.gemspec +53 -2
- metadata +56 -5
data/lib/kaltura/service.rb
CHANGED
@@ -1,1301 +1,38 @@
|
|
1
|
-
|
1
|
+
require 'kaltura/service/base_service'
|
2
|
+
|
3
|
+
require 'kaltura/service/access_control_service'
|
4
|
+
require 'kaltura/service/admin_user_service'
|
5
|
+
require 'kaltura/service/base_entry_service'
|
6
|
+
require 'kaltura/service/bulk_upload_service'
|
7
|
+
require 'kaltura/service/category_service'
|
8
|
+
require 'kaltura/service/conversion_profile_service'
|
9
|
+
require 'kaltura/service/data_service'
|
10
|
+
require 'kaltura/service/email_ingestion_profile_service'
|
11
|
+
require 'kaltura/service/flavor_asset_service'
|
12
|
+
require 'kaltura/service/flavor_params_service'
|
13
|
+
require 'kaltura/service/live_stream_service'
|
14
|
+
require 'kaltura/service/media_service'
|
15
|
+
require 'kaltura/service/mixing_service'
|
16
|
+
require 'kaltura/service/notification_service'
|
17
|
+
require 'kaltura/service/partner_service'
|
18
|
+
require 'kaltura/service/playlist_service'
|
19
|
+
require 'kaltura/service/report_service'
|
20
|
+
require 'kaltura/service/search_service'
|
21
|
+
require 'kaltura/service/session_service'
|
22
|
+
require 'kaltura/service/stats_service'
|
23
|
+
require 'kaltura/service/syndication_feed_service'
|
24
|
+
require 'kaltura/service/system_service'
|
25
|
+
require 'kaltura/service/ui_conf_service'
|
26
|
+
require 'kaltura/service/upload_service'
|
27
|
+
require 'kaltura/service/user_service'
|
28
|
+
require 'kaltura/service/widget_service'
|
29
|
+
require 'kaltura/service/x_internal_service'
|
30
|
+
require 'kaltura/service/system_user_service'
|
31
|
+
require 'kaltura/service/system_partner_service'
|
2
32
|
|
3
33
|
module Kaltura
|
4
34
|
module Service
|
5
|
-
|
6
|
-
class BaseService
|
7
|
-
attr_accessor :client
|
8
|
-
|
9
|
-
def initialize(client)
|
10
|
-
@client = client
|
11
|
-
end
|
12
|
-
|
13
|
-
def perform_request(service_class,service_action,paramters,allow_multirequest=true)
|
14
|
-
if allow_multirequest == false && client.is_multirequest
|
15
|
-
return nil
|
16
|
-
else
|
17
|
-
client.queue_service_action_call(service_class,service_action,paramters)
|
18
|
-
return client.do_queue
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end #class BaseService
|
22
|
-
|
23
|
-
class AccessControlService < BaseService
|
24
|
-
|
25
|
-
def add(access_control)
|
26
|
-
kparams = {}
|
27
|
-
client.add_param(kparams, 'accessControl', access_control)
|
28
|
-
perform_request('accessControl','add',kparams,false)
|
29
|
-
end
|
30
|
-
|
31
|
-
def get(id)
|
32
|
-
kparams = {}
|
33
|
-
client.add_param(kparams, 'id', id)
|
34
|
-
perform_request('accessControl','get',kparams,false)
|
35
|
-
end
|
36
|
-
|
37
|
-
def update(id, access_control)
|
38
|
-
kparams = {}
|
39
|
-
client.add_param(kparams, 'id', id)
|
40
|
-
client.add_param(kparams, 'accessControl', access_control)
|
41
|
-
perform_request('accessControl','update',kparams,false)
|
42
|
-
end
|
43
|
-
|
44
|
-
def delete(id)
|
45
|
-
kparams = {}
|
46
|
-
client.add_param(kparams, 'id', id)
|
47
|
-
perform_request('accessControl','delete',kparams,false)
|
48
|
-
end
|
49
|
-
|
50
|
-
def list(filter=nil, pager=nil)
|
51
|
-
kparams = {}
|
52
|
-
client.add_param(kparams, 'filter', filter)
|
53
|
-
client.add_param(kparams, 'pager', pager)
|
54
|
-
perform_request('accessControl','list',kparams,false)
|
55
|
-
end
|
56
|
-
end #class AccessControlService
|
57
|
-
|
58
|
-
class AdminUserService < BaseService
|
59
|
-
|
60
|
-
def update_password(email, password, new_email='', new_password='')
|
61
|
-
kparams = {}
|
62
|
-
client.add_param(kparams, 'email', email)
|
63
|
-
client.add_param(kparams, 'password', password)
|
64
|
-
client.add_param(kparams, 'newEmail', new_email)
|
65
|
-
client.add_param(kparams, 'newPassword', new_password)
|
66
|
-
perform_request('adminUser','updatePassword',kparams,false)
|
67
|
-
end
|
68
|
-
|
69
|
-
def reset_password(email)
|
70
|
-
kparams = {}
|
71
|
-
client.add_param(kparams, 'email', email)
|
72
|
-
perform_request('adminUser','resetPassword',kparams,false)
|
73
|
-
end
|
74
|
-
|
75
|
-
def login(email, password)
|
76
|
-
kparams = {}
|
77
|
-
client.add_param(kparams, 'email', email)
|
78
|
-
client.add_param(kparams, 'password', password)
|
79
|
-
perform_request('adminUser','login',kparams,false)
|
80
|
-
end
|
81
|
-
end #class AdminUserService
|
82
|
-
|
83
|
-
class BaseEntryService < BaseService
|
84
|
-
|
85
|
-
def add_from_uploaded_file(entry, upload_token_id, type=-1)
|
86
|
-
kparams = {}
|
87
|
-
client.add_param(kparams, 'entry', entry)
|
88
|
-
client.add_param(kparams, 'uploadTokenId', upload_token_id)
|
89
|
-
client.add_param(kparams, 'type', type)
|
90
|
-
perform_request('baseEntry','addFromUploadedFile',kparams,false)
|
91
|
-
end
|
92
|
-
|
93
|
-
def get(entry_id, version=-1)
|
94
|
-
kparams = {}
|
95
|
-
client.add_param(kparams, 'entryId', entry_id)
|
96
|
-
client.add_param(kparams, 'version', version)
|
97
|
-
perform_request('baseEntry','get',kparams,false)
|
98
|
-
end
|
99
|
-
|
100
|
-
def update(entry_id, base_entry)
|
101
|
-
kparams = {}
|
102
|
-
client.add_param(kparams, 'entryId', entry_id)
|
103
|
-
client.add_param(kparams, 'baseEntry', base_entry)
|
104
|
-
perform_request('baseEntry','update',kparams,false)
|
105
|
-
end
|
106
|
-
|
107
|
-
def get_by_ids(entry_ids)
|
108
|
-
kparams = {}
|
109
|
-
client.add_param(kparams, 'entryIds', entry_ids)
|
110
|
-
perform_request('baseEntry','getByIds',kparams,false)
|
111
|
-
end
|
112
|
-
|
113
|
-
def delete(entry_id)
|
114
|
-
kparams = {}
|
115
|
-
client.add_param(kparams, 'entryId', entry_id)
|
116
|
-
perform_request('baseEntry','delete',kparams,false)
|
117
|
-
end
|
118
|
-
|
119
|
-
def list(filter=nil, pager=nil)
|
120
|
-
kparams = {}
|
121
|
-
client.add_param(kparams, 'filter', filter)
|
122
|
-
client.add_param(kparams, 'pager', pager)
|
123
|
-
perform_request('baseEntry','list',kparams,false)
|
124
|
-
end
|
125
|
-
|
126
|
-
def count(filter=nil)
|
127
|
-
kparams = {}
|
128
|
-
client.add_param(kparams, 'filter', filter)
|
129
|
-
perform_request('baseEntry','count',kparams,false)
|
130
|
-
end
|
131
|
-
|
132
|
-
def upload(file_data)
|
133
|
-
kparams = {}
|
134
|
-
client.add_param(kparams, 'fileData', file_data)
|
135
|
-
perform_request('baseEntry','upload',kparams,false)
|
136
|
-
end
|
137
|
-
|
138
|
-
def update_thumbnail_jpeg(entry_id, file_data)
|
139
|
-
kparams = {}
|
140
|
-
client.add_param(kparams, 'entryId', entry_id)
|
141
|
-
client.add_param(kparams, 'fileData', file_data)
|
142
|
-
perform_request('baseEntry','updateThumbnailJpeg',kparams,false)
|
143
|
-
end
|
144
|
-
|
145
|
-
def update_thumbnail_from_url(entry_id, url)
|
146
|
-
kparams = {}
|
147
|
-
client.add_param(kparams, 'entryId', entry_id)
|
148
|
-
client.add_param(kparams, 'url', url)
|
149
|
-
perform_request('baseEntry','updateThumbnailFromUrl',kparams,false)
|
150
|
-
end
|
151
|
-
|
152
|
-
def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
|
153
|
-
kparams = {}
|
154
|
-
client.add_param(kparams, 'entryId', entry_id)
|
155
|
-
client.add_param(kparams, 'sourceEntryId', source_entry_id)
|
156
|
-
client.add_param(kparams, 'timeOffset', time_offset)
|
157
|
-
perform_request('baseEntry','updateThumbnailFromSourceEntry',kparams,false)
|
158
|
-
end
|
159
|
-
|
160
|
-
def flag(moderation_flag)
|
161
|
-
kparams = {}
|
162
|
-
client.add_param(kparams, 'moderationFlag', moderation_flag)
|
163
|
-
perform_request('baseEntry','flag',kparams,false)
|
164
|
-
end
|
165
|
-
|
166
|
-
def reject(entry_id)
|
167
|
-
kparams = {}
|
168
|
-
client.add_param(kparams, 'entryId', entry_id)
|
169
|
-
perform_request('baseEntry','reject',kparams,false)
|
170
|
-
end
|
171
|
-
|
172
|
-
def approve(entry_id)
|
173
|
-
kparams = {}
|
174
|
-
client.add_param(kparams, 'entryId', entry_id)
|
175
|
-
perform_request('baseEntry','approve',kparams,false)
|
176
|
-
end
|
177
|
-
|
178
|
-
def list_flags(entry_id, pager=nil)
|
179
|
-
kparams = {}
|
180
|
-
client.add_param(kparams, 'entryId', entry_id)
|
181
|
-
client.add_param(kparams, 'pager', pager)
|
182
|
-
perform_request('baseEntry','listFlags',kparams,false)
|
183
|
-
end
|
184
|
-
|
185
|
-
def anonymous_rank(entry_id, rank)
|
186
|
-
kparams = {}
|
187
|
-
client.add_param(kparams, 'entryId', entry_id)
|
188
|
-
client.add_param(kparams, 'rank', rank)
|
189
|
-
perform_request('baseEntry','anonymousRank',kparams,false)
|
190
|
-
end
|
191
|
-
|
192
|
-
def get_context_data(entry_id, context_data_params)
|
193
|
-
kparams = {}
|
194
|
-
client.add_param(kparams, 'entryId', entry_id)
|
195
|
-
client.add_param(kparams, 'contextDataParams', context_data_params)
|
196
|
-
perform_request('baseEntry','getContextData',kparams,false)
|
197
|
-
end
|
198
|
-
end #class BaseEntryService
|
199
|
-
|
200
|
-
class BulkUploadService < BaseService
|
201
|
-
|
202
|
-
def add(conversion_profile_id, csv_file_data)
|
203
|
-
kparams = {}
|
204
|
-
client.add_param(kparams, 'conversionProfileId', conversion_profile_id)
|
205
|
-
client.add_param(kparams, 'csvFileData', csv_file_data)
|
206
|
-
perform_request('bulkUpload','add',kparams,false)
|
207
|
-
end
|
208
|
-
|
209
|
-
def get(id)
|
210
|
-
kparams = {}
|
211
|
-
client.add_param(kparams, 'id', id)
|
212
|
-
perform_request('bulkUpload','get',kparams,false)
|
213
|
-
end
|
214
|
-
|
215
|
-
def list(pager=nil)
|
216
|
-
kparams = {}
|
217
|
-
client.add_param(kparams, 'pager', pager)
|
218
|
-
perform_request('bulkUpload','list',kparams,false)
|
219
|
-
end
|
220
|
-
end #class BulkUploadService
|
221
|
-
|
222
|
-
class CategoryService < BaseService
|
223
|
-
|
224
|
-
def add(category)
|
225
|
-
kparams = {}
|
226
|
-
client.add_param(kparams, 'category', category)
|
227
|
-
perform_request('category','add',kparams,false)
|
228
|
-
end
|
229
|
-
|
230
|
-
def get(id)
|
231
|
-
kparams = {}
|
232
|
-
client.add_param(kparams, 'id', id)
|
233
|
-
perform_request('category','get',kparams,false)
|
234
|
-
end
|
235
|
-
|
236
|
-
def update(id, category)
|
237
|
-
kparams = {}
|
238
|
-
client.add_param(kparams, 'id', id)
|
239
|
-
client.add_param(kparams, 'category', category)
|
240
|
-
perform_request('category','update',kparams,false)
|
241
|
-
end
|
242
|
-
|
243
|
-
def delete(id)
|
244
|
-
kparams = {}
|
245
|
-
client.add_param(kparams, 'id', id)
|
246
|
-
perform_request('category','delete',kparams,false)
|
247
|
-
end
|
248
|
-
|
249
|
-
def list(filter=nil)
|
250
|
-
kparams = {}
|
251
|
-
client.add_param(kparams, 'filter', filter)
|
252
|
-
perform_request('category','list',kparams,false)
|
253
|
-
end
|
254
|
-
end #class CategoryService
|
255
|
-
|
256
|
-
class ConversionProfileService < BaseService
|
257
|
-
|
258
|
-
def add(conversion_profile)
|
259
|
-
kparams = {}
|
260
|
-
client.add_param(kparams, 'conversionProfile', conversion_profile)
|
261
|
-
perform_request('conversionProfile','add',kparams,false)
|
262
|
-
end
|
263
|
-
|
264
|
-
def get(id)
|
265
|
-
kparams = {}
|
266
|
-
client.add_param(kparams, 'id', id)
|
267
|
-
perform_request('conversionProfile','get',kparams,false)
|
268
|
-
end
|
269
|
-
|
270
|
-
def update(id, conversion_profile)
|
271
|
-
kparams = {}
|
272
|
-
client.add_param(kparams, 'id', id)
|
273
|
-
client.add_param(kparams, 'conversionProfile', conversion_profile)
|
274
|
-
perform_request('conversionProfile','update',kparams,false)
|
275
|
-
end
|
276
|
-
|
277
|
-
def delete(id)
|
278
|
-
kparams = {}
|
279
|
-
client.add_param(kparams, 'id', id)
|
280
|
-
perform_request('conversionProfile','delete',kparams,false)
|
281
|
-
end
|
282
|
-
|
283
|
-
def list(filter=nil, pager=nil)
|
284
|
-
kparams = {}
|
285
|
-
client.add_param(kparams, 'filter', filter)
|
286
|
-
client.add_param(kparams, 'pager', pager)
|
287
|
-
perform_request('conversionProfile','list',kparams,false)
|
288
|
-
end
|
289
|
-
end #class ConversionProfileService
|
290
|
-
|
291
|
-
class DataService < BaseService
|
292
|
-
|
293
|
-
def add(data_entry)
|
294
|
-
kparams = {}
|
295
|
-
client.add_param(kparams, 'dataEntry', data_entry)
|
296
|
-
perform_request('data','add',kparams,false)
|
297
|
-
end
|
298
|
-
|
299
|
-
def get(entry_id, version=-1)
|
300
|
-
kparams = {}
|
301
|
-
client.add_param(kparams, 'entryId', entry_id)
|
302
|
-
client.add_param(kparams, 'version', version)
|
303
|
-
perform_request('data','get',kparams,false)
|
304
|
-
end
|
305
|
-
|
306
|
-
def update(entry_id, document_entry)
|
307
|
-
kparams = {}
|
308
|
-
client.add_param(kparams, 'entryId', entry_id)
|
309
|
-
client.add_param(kparams, 'documentEntry', document_entry)
|
310
|
-
perform_request('data','update',kparams,false)
|
311
|
-
end
|
312
|
-
|
313
|
-
def delete(entry_id)
|
314
|
-
kparams = {}
|
315
|
-
client.add_param(kparams, 'entryId', entry_id)
|
316
|
-
perform_request('data','delete',kparams,false)
|
317
|
-
end
|
318
|
-
|
319
|
-
def list(filter=nil, pager=nil)
|
320
|
-
kparams = {}
|
321
|
-
client.add_param(kparams, 'filter', filter)
|
322
|
-
client.add_param(kparams, 'pager', pager)
|
323
|
-
perform_request('data','list',kparams,false)
|
324
|
-
end
|
325
|
-
end #class DataService
|
326
|
-
|
327
|
-
|
328
|
-
class EmailIngestionProfileService < BaseService
|
329
|
-
|
330
|
-
def add(email_ip)
|
331
|
-
kparams = {}
|
332
|
-
client.add_param(kparams, 'EmailIP', email_ip)
|
333
|
-
perform_request('EmailIngestionProfile','add',kparams,false)
|
334
|
-
end
|
335
|
-
|
336
|
-
def get_by_email_address(email_address)
|
337
|
-
kparams = {}
|
338
|
-
client.add_param(kparams, 'emailAddress', email_address)
|
339
|
-
perform_request('EmailIngestionProfile','getByEmailAddress',kparams,false)
|
340
|
-
end
|
341
|
-
|
342
|
-
def get(id)
|
343
|
-
kparams = {}
|
344
|
-
client.add_param(kparams, 'id', id)
|
345
|
-
perform_request('EmailIngestionProfile','get',kparams,false)
|
346
|
-
end
|
347
|
-
|
348
|
-
def update(id, email_ip)
|
349
|
-
kparams = {}
|
350
|
-
client.add_param(kparams, 'id', id)
|
351
|
-
client.add_param(kparams, 'EmailIP', email_ip)
|
352
|
-
perform_request('EmailIngestionProfile','update',kparams,false)
|
353
|
-
end
|
354
|
-
|
355
|
-
def delete(id)
|
356
|
-
kparams = {}
|
357
|
-
client.add_param(kparams, 'id', id)
|
358
|
-
perform_request('EmailIngestionProfile','delete',kparams,false)
|
359
|
-
end
|
360
|
-
|
361
|
-
def add_media_entry(media_entry, upload_token_id, email_prof_id, from_address, email_msg_id)
|
362
|
-
kparams = {}
|
363
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
364
|
-
client.add_param(kparams, 'uploadTokenId', upload_token_id)
|
365
|
-
client.add_param(kparams, 'emailProfId', email_prof_id)
|
366
|
-
client.add_param(kparams, 'fromAddress', from_address)
|
367
|
-
client.add_param(kparams, 'emailMsgId', email_msg_id)
|
368
|
-
perform_request('EmailIngestionProfile','addMediaEntry',kparams,false)
|
369
|
-
end
|
370
|
-
end #class EmailIngestionProfileService
|
371
|
-
|
372
|
-
class FlavorAssetService < BaseService
|
373
|
-
|
374
|
-
def get(id)
|
375
|
-
kparams = {}
|
376
|
-
client.add_param(kparams, 'id', id)
|
377
|
-
perform_request('flavorAsset','get',kparams,false)
|
378
|
-
end
|
379
|
-
|
380
|
-
def get_by_entry_id(entry_id)
|
381
|
-
kparams = {}
|
382
|
-
client.add_param(kparams, 'entryId', entry_id)
|
383
|
-
perform_request('flavorAsset','getByEntryId',kparams,false)
|
384
|
-
end
|
385
|
-
|
386
|
-
def get_web_playable_by_entry_id(entry_id)
|
387
|
-
kparams = {}
|
388
|
-
client.add_param(kparams, 'entryId', entry_id)
|
389
|
-
perform_request('flavorAsset','getWebPlayableByEntryId',kparams,false)
|
390
|
-
end
|
391
|
-
|
392
|
-
def convert(entry_id, flavor_params_id)
|
393
|
-
kparams = {}
|
394
|
-
client.add_param(kparams, 'entryId', entry_id)
|
395
|
-
client.add_param(kparams, 'flavorParamsId', flavor_params_id)
|
396
|
-
perform_request('flavorAsset','convert',kparams,false)
|
397
|
-
end
|
398
|
-
|
399
|
-
def reconvert(id)
|
400
|
-
kparams = {}
|
401
|
-
client.add_param(kparams, 'id', id)
|
402
|
-
perform_request('flavorAsset','reconvert',kparams,false)
|
403
|
-
end
|
404
|
-
|
405
|
-
def delete(id)
|
406
|
-
kparams = {}
|
407
|
-
client.add_param(kparams, 'id', id)
|
408
|
-
perform_request('flavorAsset','delete',kparams,false)
|
409
|
-
end
|
410
|
-
|
411
|
-
def get_download_url(id)
|
412
|
-
kparams = {}
|
413
|
-
client.add_param(kparams, 'id', id)
|
414
|
-
perform_request('flavorAsset','getDownloadUrl',kparams,false)
|
415
|
-
end
|
416
|
-
|
417
|
-
def get_flavor_assets_with_params(entry_id)
|
418
|
-
kparams = {}
|
419
|
-
client.add_param(kparams, 'entryId', entry_id)
|
420
|
-
perform_request('flavorAsset','getFlavorAssetsWithParams',kparams,false)
|
421
|
-
end
|
422
|
-
end #class FlavorAssetService
|
423
|
-
|
424
|
-
class FlavorParamsService < BaseService
|
425
|
-
|
426
|
-
def add(flavor_params)
|
427
|
-
kparams = {}
|
428
|
-
client.add_param(kparams, 'flavorParams', flavor_params)
|
429
|
-
perform_request('flavorParams','add',kparams,false)
|
430
|
-
end
|
431
|
-
|
432
|
-
def get(id)
|
433
|
-
kparams = {}
|
434
|
-
client.add_param(kparams, 'id', id)
|
435
|
-
perform_request('flavorParams','get',kparams,false)
|
436
|
-
end
|
437
|
-
|
438
|
-
def update(id, flavor_params)
|
439
|
-
kparams = {}
|
440
|
-
client.add_param(kparams, 'id', id)
|
441
|
-
client.add_param(kparams, 'flavorParams', flavor_params)
|
442
|
-
perform_request('flavorParams','update',kparams,false)
|
443
|
-
end
|
444
|
-
|
445
|
-
def delete(id)
|
446
|
-
kparams = {}
|
447
|
-
client.add_param(kparams, 'id', id)
|
448
|
-
perform_request('flavorParams','delete',kparams,false)
|
449
|
-
end
|
450
|
-
|
451
|
-
def list(filter=nil, pager=nil)
|
452
|
-
kparams = {}
|
453
|
-
client.add_param(kparams, 'filter', filter)
|
454
|
-
client.add_param(kparams, 'pager', pager)
|
455
|
-
perform_request('flavorParams','list',kparams,false)
|
456
|
-
end
|
457
|
-
|
458
|
-
def get_by_conversion_profile_id(conversion_profile_id)
|
459
|
-
kparams = {}
|
460
|
-
client.add_param(kparams, 'conversionProfileId', conversion_profile_id)
|
461
|
-
perform_request('flavorParams','getByConversionProfileId',kparams,false)
|
462
|
-
end
|
463
|
-
end #class FlavorParamsService
|
464
|
-
|
465
|
-
class LiveStreamService < BaseService
|
466
|
-
|
467
|
-
def add(live_stream_entry)
|
468
|
-
kparams = {}
|
469
|
-
client.add_param(kparams, 'liveStreamEntry', live_stream_entry)
|
470
|
-
perform_request('liveStream','add',kparams,false)
|
471
|
-
end
|
472
|
-
|
473
|
-
def get(entry_id, version=-1)
|
474
|
-
kparams = {}
|
475
|
-
client.add_param(kparams, 'entryId', entry_id)
|
476
|
-
client.add_param(kparams, 'version', version)
|
477
|
-
perform_request('liveStream','get',kparams,false)
|
478
|
-
end
|
479
|
-
|
480
|
-
def update(entry_id, live_stream_entry)
|
481
|
-
kparams = {}
|
482
|
-
client.add_param(kparams, 'entryId', entry_id)
|
483
|
-
client.add_param(kparams, 'liveStreamEntry', live_stream_entry)
|
484
|
-
perform_request('liveStream','update',kparams,false)
|
485
|
-
end
|
486
|
-
|
487
|
-
def delete(entry_id)
|
488
|
-
kparams = {}
|
489
|
-
client.add_param(kparams, 'entryId', entry_id)
|
490
|
-
perform_request('liveStream','delete',kparams,false)
|
491
|
-
end
|
492
|
-
|
493
|
-
def list(filter=nil, pager=nil)
|
494
|
-
kparams = {}
|
495
|
-
client.add_param(kparams, 'filter', filter)
|
496
|
-
client.add_param(kparams, 'pager', pager)
|
497
|
-
perform_request('liveStream','list',kparams,false)
|
498
|
-
end
|
499
|
-
|
500
|
-
def update_offline_thumbnail_jpeg(entry_id, file_data)
|
501
|
-
kparams = {}
|
502
|
-
client.add_param(kparams, 'entryId', entry_id)
|
503
|
-
client.add_param(kparams, 'fileData', file_data)
|
504
|
-
perform_request('liveStream','updateOfflineThumbnailJpeg',kparams,false)
|
505
|
-
end
|
506
|
-
|
507
|
-
def update_offline_thumbnail_from_url(entry_id, url)
|
508
|
-
kparams = {}
|
509
|
-
client.add_param(kparams, 'entryId', entry_id)
|
510
|
-
client.add_param(kparams, 'url', url)
|
511
|
-
perform_request('liveStream','updateOfflineThumbnailFromUrl',kparams,false)
|
512
|
-
end
|
513
|
-
end #class LiveStreamService
|
514
|
-
|
515
|
-
class MediaService < BaseService
|
516
|
-
|
517
|
-
def add_from_bulk(media_entry, url, bulk_upload_id)
|
518
|
-
kparams = {}
|
519
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
520
|
-
client.add_param(kparams, 'url', url)
|
521
|
-
client.add_param(kparams, 'bulkUploadId', bulk_upload_id)
|
522
|
-
perform_request('media','addFromBulk',kparams,false)
|
523
|
-
end
|
524
|
-
|
525
|
-
def add_from_url(media_entry, url)
|
526
|
-
kparams = {}
|
527
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
528
|
-
client.add_param(kparams, 'url', url)
|
529
|
-
perform_request('media','addFromUrl',kparams,false)
|
530
|
-
end
|
531
|
-
|
532
|
-
def add_from_search_result(media_entry=nil, search_result=nil)
|
533
|
-
kparams = {}
|
534
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
535
|
-
client.add_param(kparams, 'searchResult', search_result)
|
536
|
-
perform_request('media','addFromSearchResult',kparams,false)
|
537
|
-
end
|
538
|
-
|
539
|
-
def add_from_uploaded_file(media_entry, upload_token_id)
|
540
|
-
kparams = {}
|
541
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
542
|
-
client.add_param(kparams, 'uploadTokenId', upload_token_id)
|
543
|
-
perform_request('media','addFromUploadedFile',kparams,false)
|
544
|
-
end
|
545
|
-
|
546
|
-
def add_from_recorded_webcam(media_entry, webcam_token_id)
|
547
|
-
kparams = {}
|
548
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
549
|
-
client.add_param(kparams, 'webcamTokenId', webcam_token_id)
|
550
|
-
perform_request('media','addFromRecordedWebcam',kparams,false)
|
551
|
-
end
|
552
|
-
|
553
|
-
def get(entry_id, version=-1)
|
554
|
-
kparams = {}
|
555
|
-
client.add_param(kparams, 'entryId', entry_id)
|
556
|
-
client.add_param(kparams, 'version', version)
|
557
|
-
perform_request('media','get',kparams,false)
|
558
|
-
end
|
559
|
-
|
560
|
-
def update(entry_id, media_entry)
|
561
|
-
kparams = {}
|
562
|
-
client.add_param(kparams, 'entryId', entry_id)
|
563
|
-
client.add_param(kparams, 'mediaEntry', media_entry)
|
564
|
-
perform_request('media','update',kparams,false)
|
565
|
-
end
|
566
|
-
|
567
|
-
def delete(entry_id)
|
568
|
-
kparams = {}
|
569
|
-
client.add_param(kparams, 'entryId', entry_id)
|
570
|
-
perform_request('media','delete',kparams,false)
|
571
|
-
end
|
572
|
-
|
573
|
-
def list(filter=nil, pager=nil)
|
574
|
-
kparams = {}
|
575
|
-
client.add_param(kparams, 'filter', filter)
|
576
|
-
client.add_param(kparams, 'pager', pager)
|
577
|
-
perform_request('media','list',kparams,false)
|
578
|
-
end
|
579
|
-
|
580
|
-
def count(filter=nil)
|
581
|
-
kparams = {}
|
582
|
-
client.add_param(kparams, 'filter', filter)
|
583
|
-
perform_request('media','count',kparams,false)
|
584
|
-
end
|
585
|
-
|
586
|
-
def upload(file_data)
|
587
|
-
kparams = {}
|
588
|
-
client.add_param(kparams, 'fileData', file_data)
|
589
|
-
perform_request('media','upload',kparams,false)
|
590
|
-
end
|
591
|
-
|
592
|
-
def update_thumbnail(entry_id, time_offset)
|
593
|
-
kparams = {}
|
594
|
-
client.add_param(kparams, 'entryId', entry_id)
|
595
|
-
client.add_param(kparams, 'timeOffset', time_offset)
|
596
|
-
perform_request('media','updateThumbnail',kparams,false)
|
597
|
-
end
|
598
|
-
|
599
|
-
def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
|
600
|
-
kparams = {}
|
601
|
-
client.add_param(kparams, 'entryId', entry_id)
|
602
|
-
client.add_param(kparams, 'sourceEntryId', source_entry_id)
|
603
|
-
client.add_param(kparams, 'timeOffset', time_offset)
|
604
|
-
perform_request('media','updateThumbnailFromSourceEntry',kparams,false)
|
605
|
-
end
|
606
|
-
|
607
|
-
def update_thumbnail_jpeg(entry_id, file_data)
|
608
|
-
kparams = {}
|
609
|
-
client.add_param(kparams, 'entryId', entry_id)
|
610
|
-
client.add_param(kparams, 'fileData', file_data)
|
611
|
-
perform_request('media','updateThumbnailJpeg',kparams,false)
|
612
|
-
end
|
613
|
-
|
614
|
-
def update_thumbnail_from_url(entry_id, url)
|
615
|
-
kparams = {}
|
616
|
-
client.add_param(kparams, 'entryId', entry_id)
|
617
|
-
client.add_param(kparams, 'url', url)
|
618
|
-
perform_request('media','updateThumbnailFromUrl',kparams,false)
|
619
|
-
end
|
620
|
-
|
621
|
-
def request_conversion(entry_id, file_format)
|
622
|
-
kparams = {}
|
623
|
-
client.add_param(kparams, 'entryId', entry_id)
|
624
|
-
client.add_param(kparams, 'fileFormat', file_format)
|
625
|
-
perform_request('media','requestConversion',kparams,false)
|
626
|
-
end
|
627
|
-
|
628
|
-
def flag(moderation_flag)
|
629
|
-
kparams = {}
|
630
|
-
client.add_param(kparams, 'moderationFlag', moderation_flag)
|
631
|
-
perform_request('media','flag',kparams,false)
|
632
|
-
end
|
633
|
-
|
634
|
-
def reject(entry_id)
|
635
|
-
kparams = {}
|
636
|
-
client.add_param(kparams, 'entryId', entry_id)
|
637
|
-
perform_request('media','request',kparams,false)
|
638
|
-
end
|
639
|
-
|
640
|
-
def approve(entry_id)
|
641
|
-
kparams = {}
|
642
|
-
client.add_param(kparams, 'entryId', entry_id)
|
643
|
-
perform_request('media','approve',kparams,false)
|
644
|
-
end
|
645
|
-
|
646
|
-
def list_flags(entry_id, pager=nil)
|
647
|
-
kparams = {}
|
648
|
-
client.add_param(kparams, 'entryId', entry_id)
|
649
|
-
client.add_param(kparams, 'pager', pager)
|
650
|
-
perform_request('media','listFlags',kparams,false)
|
651
|
-
end
|
652
|
-
|
653
|
-
def anonymous_rank(entry_id, rank)
|
654
|
-
kparams = {}
|
655
|
-
client.add_param(kparams, 'entryId', entry_id)
|
656
|
-
client.add_param(kparams, 'rank', rank)
|
657
|
-
perform_request('media','anonymousRank',kparams,false)
|
658
|
-
end
|
659
|
-
end #class MediaService
|
660
|
-
|
661
|
-
class MixingService < BaseService
|
662
|
-
|
663
|
-
def add(mix_entry)
|
664
|
-
kparams = {}
|
665
|
-
client.add_param(kparams, 'mixEntry', mix_entry)
|
666
|
-
perform_request('mixing','add',kparams,false)
|
667
|
-
end
|
668
|
-
|
669
|
-
def get(entry_id, version=-1)
|
670
|
-
kparams = {}
|
671
|
-
client.add_param(kparams, 'entryId', entry_id)
|
672
|
-
client.add_param(kparams, 'version', version)
|
673
|
-
perform_request('mixing','get',kparams,false)
|
674
|
-
end
|
675
|
-
|
676
|
-
def update(entry_id, mix_entry)
|
677
|
-
kparams = {}
|
678
|
-
client.add_param(kparams, 'entryId', entry_id)
|
679
|
-
client.add_param(kparams, 'mixEntry', mix_entry)
|
680
|
-
perform_request('mixing','update',kparams,false)
|
681
|
-
end
|
682
|
-
|
683
|
-
def delete(entry_id)
|
684
|
-
kparams = {}
|
685
|
-
client.add_param(kparams, 'entryId', entry_id)
|
686
|
-
perform_request('mixing','delete',kparams,false)
|
687
|
-
end
|
688
|
-
|
689
|
-
def list(filter=nil, pager=nil)
|
690
|
-
kparams = {}
|
691
|
-
client.add_param(kparams, 'filter', filter)
|
692
|
-
client.add_param(kparams, 'pager', pager)
|
693
|
-
perform_request('mixing','list',kparams,false)
|
694
|
-
end
|
695
|
-
|
696
|
-
def count(filter=nil)
|
697
|
-
kparams = {}
|
698
|
-
client.add_param(kparams, 'filter', filter)
|
699
|
-
perform_request('mixing','count',kparams,false)
|
700
|
-
end
|
701
|
-
|
702
|
-
def clone(entry_id)
|
703
|
-
kparams = {}
|
704
|
-
client.add_param(kparams, 'entryId', entry_id)
|
705
|
-
perform_request('mixing','clone',kparams,false)
|
706
|
-
end
|
707
|
-
|
708
|
-
def append_media_entry(mix_entry_id, media_entry_id)
|
709
|
-
kparams = {}
|
710
|
-
client.add_param(kparams, 'mixEntryId', mix_entry_id)
|
711
|
-
client.add_param(kparams, 'mediaEntryId', media_entry_id)
|
712
|
-
perform_request('mixing','appendMediaEntry',kparams,false)
|
713
|
-
end
|
714
|
-
|
715
|
-
def request_flattening(entry_id, file_format, version=-1)
|
716
|
-
kparams = {}
|
717
|
-
client.add_param(kparams, 'entryId', entry_id)
|
718
|
-
client.add_param(kparams, 'fileFormat', file_format)
|
719
|
-
client.add_param(kparams, 'version', version)
|
720
|
-
perform_request('mixing','requestFlattening',kparams,false)
|
721
|
-
end
|
722
|
-
|
723
|
-
def get_mixes_by_media_id(media_entry_id)
|
724
|
-
kparams = {}
|
725
|
-
client.add_param(kparams, 'mediaEntryId', media_entry_id)
|
726
|
-
perform_request('mixing','getMixesByMediaId',kparams,false)
|
727
|
-
end
|
728
|
-
|
729
|
-
def get_ready_media_entries(mix_id, version=-1)
|
730
|
-
kparams = {}
|
731
|
-
client.add_param(kparams, 'mixId', mix_id)
|
732
|
-
client.add_param(kparams, 'version', version)
|
733
|
-
perform_request('mixing','getReadyMediaEntries',kparams,false)
|
734
|
-
end
|
735
|
-
|
736
|
-
def anonymous_rank(entry_id, rank)
|
737
|
-
kparams = {}
|
738
|
-
client.add_param(kparams, 'entryId', entry_id)
|
739
|
-
client.add_param(kparams, 'rank', rank)
|
740
|
-
perform_request('mixing','anonymousRank',kparams,false)
|
741
|
-
end
|
742
|
-
end #class MixingService
|
743
|
-
|
744
|
-
class NotificationService < BaseService
|
745
|
-
|
746
|
-
def get_client_notification(entry_id, type)
|
747
|
-
kparams = {}
|
748
|
-
client.add_param(kparams, 'entryId', entry_id)
|
749
|
-
client.add_param(kparams, 'type', type)
|
750
|
-
perform_request('notification','getClientNotification',kparams,false)
|
751
|
-
end
|
752
|
-
end #class NotificationService
|
753
|
-
|
754
|
-
class PartnerService < BaseService
|
755
|
-
|
756
|
-
def register(partner, cms_password='')
|
757
|
-
kparams = {}
|
758
|
-
client.add_param(kparams, 'partner', partner)
|
759
|
-
client.add_param(kparams, 'cmsPassword', cms_password)
|
760
|
-
perform_request('partner','register',kparams,false)
|
761
|
-
end
|
762
|
-
|
763
|
-
def update(partner, allow_empty=false)
|
764
|
-
kparams = {}
|
765
|
-
client.add_param(kparams, 'partner', partner)
|
766
|
-
client.add_param(kparams, 'allowEmpty', allow_empty)
|
767
|
-
perform_request('partner','update',kparams,false)
|
768
|
-
end
|
769
|
-
|
770
|
-
def get_secrets(partner_id, admin_email, cms_password)
|
771
|
-
kparams = {}
|
772
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
773
|
-
client.add_param(kparams, 'adminEmail', admin_email)
|
774
|
-
client.add_param(kparams, 'cmsPassword', cms_password)
|
775
|
-
perform_request('partner','getSecrets',kparams,false)
|
776
|
-
end
|
777
|
-
|
778
|
-
def get_info()
|
779
|
-
kparams = {}
|
780
|
-
perform_request('partner','getInfo',kparams,false)
|
781
|
-
end
|
782
|
-
|
783
|
-
def get_usage(year='', month=1, resolution='days')
|
784
|
-
kparams = {}
|
785
|
-
client.add_param(kparams, 'year', year)
|
786
|
-
client.add_param(kparams, 'month', month)
|
787
|
-
client.add_param(kparams, 'resolution', resolution)
|
788
|
-
perform_request('partner','getUsage',kparams,false)
|
789
|
-
end
|
790
|
-
end #class PartnerService
|
791
|
-
|
792
|
-
class PlaylistService < BaseService
|
793
|
-
|
794
|
-
def add(playlist, update_stats=false)
|
795
|
-
kparams = {}
|
796
|
-
client.add_param(kparams, 'playlist', playlist)
|
797
|
-
client.add_param(kparams, 'updateStats', update_stats)
|
798
|
-
perform_request('playList','add',kparams,false)
|
799
|
-
end
|
800
|
-
|
801
|
-
def get(id, version=-1)
|
802
|
-
kparams = {}
|
803
|
-
client.add_param(kparams, 'id', id)
|
804
|
-
client.add_param(kparams, 'version', version)
|
805
|
-
perform_request('playList','get',kparams,false)
|
806
|
-
end
|
807
|
-
|
808
|
-
def update(id, playlist, update_stats=false)
|
809
|
-
kparams = {}
|
810
|
-
client.add_param(kparams, 'id', id)
|
811
|
-
client.add_param(kparams, 'playlist', playlist)
|
812
|
-
client.add_param(kparams, 'updateStats', update_stats)
|
813
|
-
perform_request('playList','update',kparams,false)
|
814
|
-
end
|
815
|
-
|
816
|
-
def delete(id)
|
817
|
-
kparams = {}
|
818
|
-
client.add_param(kparams, 'id', id)
|
819
|
-
perform_request('playList','delete',kparams,false)
|
820
|
-
end
|
821
|
-
|
822
|
-
def list(filter=nil, pager=nil)
|
823
|
-
kparams = {}
|
824
|
-
client.add_param(kparams, 'filter', filter)
|
825
|
-
client.add_param(kparams, 'pager', pager)
|
826
|
-
perform_request('playList','list',kparams,false)
|
827
|
-
end
|
828
|
-
|
829
|
-
def execute(id, detailed='')
|
830
|
-
kparams = {}
|
831
|
-
client.add_param(kparams, 'id', id)
|
832
|
-
client.add_param(kparams, 'detailed', detailed)
|
833
|
-
perform_request('playList','execute',kparams,false)
|
834
|
-
end
|
835
|
-
|
836
|
-
def execute_from_content(playlist_type, playlist_content, detailed='')
|
837
|
-
kparams = {}
|
838
|
-
client.add_param(kparams, 'playlistType', playlist_type)
|
839
|
-
client.add_param(kparams, 'playlistContent', playlist_content)
|
840
|
-
client.add_param(kparams, 'detailed', detailed)
|
841
|
-
perform_request('playList','executeFromContent',kparams,false)
|
842
|
-
end
|
843
|
-
|
844
|
-
def execute_from_filters(filters, total_results, detailed='')
|
845
|
-
kparams = {}
|
846
|
-
filters.each do |obj|
|
847
|
-
client.add_param(kparams, 'filters', obj)
|
848
|
-
end
|
849
|
-
client.add_param(kparams, 'totalResults', total_results)
|
850
|
-
client.add_param(kparams, 'detailed', detailed)
|
851
|
-
perform_request('playList','executeFromFilters',kparams)
|
852
|
-
end
|
853
|
-
|
854
|
-
def get_stats_from_content(playlist_type, playlist_content)
|
855
|
-
kparams = {}
|
856
|
-
client.add_param(kparams, 'playlistType', playlist_type)
|
857
|
-
client.add_param(kparams, 'playlistContent', playlist_content)
|
858
|
-
perform_request('playList','getStatsFromContent',kparams,false)
|
859
|
-
end
|
860
|
-
end #class PlaylistService
|
861
|
-
|
862
|
-
class ReportService < BaseService
|
863
|
-
|
864
|
-
def get_graphs(report_type, report_input_filter, dimension='', object_ids='')
|
865
|
-
kparams = {}
|
866
|
-
client.add_param(kparams, 'reportType', report_type)
|
867
|
-
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
868
|
-
client.add_param(kparams, 'dimension', dimension)
|
869
|
-
client.add_param(kparams, 'objectIds', object_ids)
|
870
|
-
perform_requesT('report','getGraphs',kparams,false)
|
871
|
-
end
|
872
|
-
|
873
|
-
def get_total(report_type, report_input_filter, object_ids='')
|
874
|
-
kparams = {}
|
875
|
-
client.add_param(kparams, 'reportType', report_type)
|
876
|
-
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
877
|
-
client.add_param(kparams, 'objectIds', object_ids)
|
878
|
-
perform_request('report','getTotal',kparams,false)
|
879
|
-
end
|
880
|
-
|
881
|
-
def get_table(report_type, report_input_filter, pager, order='', object_ids='')
|
882
|
-
kparams = {}
|
883
|
-
client.add_param(kparams, 'reportType', report_type)
|
884
|
-
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
885
|
-
client.add_param(kparams, 'pager', pager)
|
886
|
-
client.add_param(kparams, 'order', order)
|
887
|
-
client.add_param(kparams, 'objectIds', object_ids)
|
888
|
-
perform_request('report','getTable',kparams,false)
|
889
|
-
end
|
890
|
-
|
891
|
-
def get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension='', pager=nil, order='', object_ids='')
|
892
|
-
kparams = {}
|
893
|
-
client.add_param(kparams, 'reportTitle', report_title)
|
894
|
-
client.add_param(kparams, 'reportText', report_text)
|
895
|
-
client.add_param(kparams, 'headers', headers)
|
896
|
-
client.add_param(kparams, 'reportType', report_type)
|
897
|
-
client.add_param(kparams, 'reportInputFilter', report_input_filter)
|
898
|
-
client.add_param(kparams, 'dimension', dimension)
|
899
|
-
client.add_param(kparams, 'pager', pager)
|
900
|
-
client.add_param(kparams, 'order', order)
|
901
|
-
client.add_param(kparams, 'objectIds', object_ids)
|
902
|
-
perform_request('report','getUrlForReportAsCsv',kparams,false)
|
903
|
-
end
|
904
|
-
end #class ReportService
|
905
|
-
|
906
|
-
|
907
|
-
class SearchService < BaseService
|
908
|
-
|
909
|
-
def search(search, pager=nil)
|
910
|
-
kparams = {}
|
911
|
-
client.add_param(kparams, 'search', search)
|
912
|
-
client.add_param(kparams, 'pager', pager)
|
913
|
-
perform_request('search','search',kparams,false)
|
914
|
-
end
|
915
|
-
|
916
|
-
def get_media_info(search_result)
|
917
|
-
kparams = {}
|
918
|
-
client.add_param(kparams, 'searchResult', search_result)
|
919
|
-
perform_request('search','getMediaInfo',kparams,false)
|
920
|
-
end
|
921
|
-
|
922
|
-
def search_url(media_type, url)
|
923
|
-
kparams = {}
|
924
|
-
client.add_param(kparams, 'mediaType', media_type)
|
925
|
-
client.add_param(kparams, 'url', url)
|
926
|
-
perform_request('search','searchUrl',kparams,false)
|
927
|
-
end
|
928
|
-
|
929
|
-
def external_login(search_source, user_name, password)
|
930
|
-
kparams = {}
|
931
|
-
client.add_param(kparams, 'searchSource', search_source)
|
932
|
-
client.add_param(kparams, 'userName', user_name)
|
933
|
-
client.add_param(kparams, 'password', password)
|
934
|
-
perform_request('search','externalLogin',kparams,false)
|
935
|
-
end
|
936
|
-
end #class SearchService
|
937
|
-
|
938
|
-
class SessionService < BaseService
|
939
|
-
|
940
|
-
def start(secret, user_id='', type=0, partner_id=-1, expiry=86400, privileges='')
|
941
|
-
kparams = {}
|
942
|
-
client.add_param(kparams, 'secret', secret)
|
943
|
-
client.add_param(kparams, 'userId', user_id)
|
944
|
-
client.add_param(kparams, 'type', type)
|
945
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
946
|
-
client.add_param(kparams, 'expiry', expiry)
|
947
|
-
client.add_param(kparams, 'privileges', privileges)
|
948
|
-
perform_request('session','start',kparams,false)
|
949
|
-
end
|
950
|
-
|
951
|
-
def start_widget_session(widget_id, expiry=86400)
|
952
|
-
kparams = {}
|
953
|
-
client.add_param(kparams, 'widgetId', widget_id)
|
954
|
-
client.add_param(kparams, 'expiry', expiry)
|
955
|
-
perform_request('session','startWidgetSession',kparams,false)
|
956
|
-
end
|
957
|
-
end #class SessionService
|
958
|
-
|
959
|
-
class StatsService < BaseService
|
960
|
-
|
961
|
-
def collect(event)
|
962
|
-
kparams = {}
|
963
|
-
client.add_param(kparams, 'event', event)
|
964
|
-
perform_request('stats','collect',kparams,false)
|
965
|
-
end
|
966
|
-
|
967
|
-
def kmc_collect(kmc_event)
|
968
|
-
kparams = {}
|
969
|
-
client.add_param(kparams, 'kmcEvent', kmc_event)
|
970
|
-
perform_request('stats','kmcCollect',kparams,false)
|
971
|
-
end
|
972
|
-
|
973
|
-
def report_kce_error(kaltura_ce_error)
|
974
|
-
kparams = {}
|
975
|
-
client.add_param(kparams, 'kalturaCEError', kaltura_ce_error)
|
976
|
-
perform_request('stats','reportKceError',kparams,false)
|
977
|
-
end
|
978
|
-
end #class StatsService
|
979
|
-
|
980
|
-
class SyndicationFeedService < BaseService
|
981
|
-
|
982
|
-
def add(syndication_feed)
|
983
|
-
kparams = {}
|
984
|
-
client.add_param(kparams, 'syndicationFeed', syndication_feed)
|
985
|
-
perform_request('syndicationFeed','add',kparams,false)
|
986
|
-
end
|
987
|
-
|
988
|
-
def get(id)
|
989
|
-
kparams = {}
|
990
|
-
client.add_param(kparams, 'id', id)
|
991
|
-
perform_request('syndicationFeed','get',kparams,false)
|
992
|
-
end
|
993
|
-
|
994
|
-
def update(id, syndication_feed)
|
995
|
-
kparams = {}
|
996
|
-
client.add_param(kparams, 'id', id)
|
997
|
-
client.add_param(kparams, 'syndicationFeed', syndication_feed)
|
998
|
-
perform_request('syndicationFeed','update',kparams,false)
|
999
|
-
end
|
1000
|
-
|
1001
|
-
def delete(id)
|
1002
|
-
kparams = {}
|
1003
|
-
client.add_param(kparams, 'id', id)
|
1004
|
-
perform_request('syndicationFeed','delete',kparams,false)
|
1005
|
-
end
|
1006
|
-
|
1007
|
-
def list(filter=nil, pager=nil)
|
1008
|
-
kparams = {}
|
1009
|
-
client.add_param(kparams, 'filter', filter)
|
1010
|
-
client.add_param(kparams, 'pager', pager)
|
1011
|
-
perform_request('syndicationFeed','list',kparams,false)
|
1012
|
-
end
|
1013
|
-
|
1014
|
-
def get_entry_count(feed_id)
|
1015
|
-
kparams = {}
|
1016
|
-
client.add_param(kparams, 'feedId', feed_id)
|
1017
|
-
perform_request('syndicationFeed','getEntryCount',kparams,false)
|
1018
|
-
end
|
1019
|
-
|
1020
|
-
def request_conversion(feed_id)
|
1021
|
-
kparams = {}
|
1022
|
-
client.add_param(kparams, 'feedId', feed_id)
|
1023
|
-
perform_request('syndicationFeed','requestConversion',kparams,false)
|
1024
|
-
end
|
1025
|
-
end #class SyndicationFeedService
|
1026
|
-
|
1027
|
-
class SystemService < BaseService
|
1028
|
-
|
1029
|
-
def ping()
|
1030
|
-
kparams = {}
|
1031
|
-
perform_request('system','ping',kparams,false)
|
1032
|
-
end
|
1033
|
-
end #class SystemService
|
1034
|
-
|
1035
|
-
class UiConfService < BaseService
|
1036
|
-
|
1037
|
-
def add(ui_conf)
|
1038
|
-
kparams = {}
|
1039
|
-
client.add_param(kparams, 'uiConf', ui_conf)
|
1040
|
-
perform_request('uiConf','add',kparams,false)
|
1041
|
-
end
|
1042
|
-
|
1043
|
-
def update(id, ui_conf)
|
1044
|
-
kparams = {}
|
1045
|
-
client.add_param(kparams, 'id', id)
|
1046
|
-
client.add_param(kparams, 'uiConf', ui_conf)
|
1047
|
-
perform_request('uiConf','update',kparams,false)
|
1048
|
-
end
|
1049
|
-
|
1050
|
-
def get(id)
|
1051
|
-
kparams = {}
|
1052
|
-
client.add_param(kparams, 'id', id)
|
1053
|
-
perform_request('uiConf','get',kparams,false)
|
1054
|
-
end
|
1055
|
-
|
1056
|
-
def delete(id)
|
1057
|
-
kparams = {}
|
1058
|
-
client.add_param(kparams, 'id', id)
|
1059
|
-
perform_request('uiConf','delete',kparams,false)
|
1060
|
-
end
|
1061
|
-
|
1062
|
-
def clone(id)
|
1063
|
-
kparams = {}
|
1064
|
-
client.add_param(kparams, 'id', id)
|
1065
|
-
perform_request('uiConf','clone',kparams,false)
|
1066
|
-
end
|
1067
|
-
|
1068
|
-
def list_templates(filter=nil, pager=nil)
|
1069
|
-
kparams = {}
|
1070
|
-
client.add_param(kparams, 'filter', filter)
|
1071
|
-
client.add_param(kparams, 'pager', pager)
|
1072
|
-
perform_request('uiConf','listTemplates',kparams,false)
|
1073
|
-
end
|
1074
|
-
|
1075
|
-
def list(filter=nil, pager=nil)
|
1076
|
-
kparams = {}
|
1077
|
-
client.add_param(kparams, 'filter', filter)
|
1078
|
-
client.add_param(kparams, 'pager', pager)
|
1079
|
-
perform_request('uiConf','list',kparams,false)
|
1080
|
-
end
|
1081
|
-
end #class UiConfService
|
1082
|
-
|
1083
|
-
class UploadService < BaseService
|
1084
|
-
|
1085
|
-
def upload(file_data)
|
1086
|
-
kparams = {}
|
1087
|
-
client.add_param(kparams, 'fileData', file_data)
|
1088
|
-
perform_request('upload','upload',kparams,false)
|
1089
|
-
end
|
1090
|
-
|
1091
|
-
def get_uploaded_file_token_by_file_name(file_name)
|
1092
|
-
kparams = {}
|
1093
|
-
client.add_param(kparams, 'fileName', file_name)
|
1094
|
-
perform_request('upload','getUploadedFileTokenByFileName',kparams,false)
|
1095
|
-
end
|
1096
|
-
end #class UploadService
|
1097
|
-
|
1098
|
-
class UserService < BaseService
|
1099
|
-
|
1100
|
-
def add(user)
|
1101
|
-
kparams = {}
|
1102
|
-
client.add_param(kparams, 'user', user)
|
1103
|
-
perform_request('user','add',kparams,false)
|
1104
|
-
end
|
1105
|
-
|
1106
|
-
def update(user_id, user)
|
1107
|
-
kparams = {}
|
1108
|
-
client.add_param(kparams, 'userId', user_id)
|
1109
|
-
client.add_param(kparams, 'user', user)
|
1110
|
-
perform_request('user','update',kparams,false)
|
1111
|
-
end
|
1112
|
-
|
1113
|
-
def get(user_id)
|
1114
|
-
kparams = {}
|
1115
|
-
client.add_param(kparams, 'userId', user_id)
|
1116
|
-
perform_request('user','get',kparams,false)
|
1117
|
-
end
|
1118
|
-
|
1119
|
-
def delete(user_id)
|
1120
|
-
kparams = {}
|
1121
|
-
client.add_param(kparams, 'userId', user_id)
|
1122
|
-
perform_request('user','delete',kparams,false)
|
1123
|
-
end
|
1124
|
-
|
1125
|
-
def list(filter=nil, pager=nil)
|
1126
|
-
kparams = {}
|
1127
|
-
client.add_param(kparams, 'filter', filter)
|
1128
|
-
client.add_param(kparams, 'pager', pager)
|
1129
|
-
perform_request('user','list',kparams,false)
|
1130
|
-
end
|
1131
|
-
|
1132
|
-
def notify_ban(user_id)
|
1133
|
-
kparams = {}
|
1134
|
-
client.add_param(kparams, 'userId', user_id)
|
1135
|
-
perform_request('user','notifyBan',kparams,false)
|
1136
|
-
end
|
1137
|
-
end #class UserService
|
1138
|
-
|
1139
|
-
class WidgetService < BaseService
|
1140
|
-
|
1141
|
-
def add(widget)
|
1142
|
-
kparams = {}
|
1143
|
-
client.add_param(kparams, 'widget', widget)
|
1144
|
-
perform_request('widget','add',kparams,false)
|
1145
|
-
end
|
1146
|
-
|
1147
|
-
def update(id, widget)
|
1148
|
-
kparams = {}
|
1149
|
-
client.add_param(kparams, 'id', id)
|
1150
|
-
client.add_param(kparams, 'widget', widget)
|
1151
|
-
perform_request('widget','update',kparams,false)
|
1152
|
-
end
|
1153
|
-
|
1154
|
-
def get(id)
|
1155
|
-
kparams = {}
|
1156
|
-
client.add_param(kparams, 'id', id)
|
1157
|
-
perform_request('widget','get',kparams,false)
|
1158
|
-
end
|
1159
|
-
|
1160
|
-
def clone(widget)
|
1161
|
-
kparams = {}
|
1162
|
-
client.add_param(kparams, 'widget', widget)
|
1163
|
-
perform_request('widget','clone',kparams,false)
|
1164
|
-
end
|
1165
|
-
|
1166
|
-
def list(filter=nil, pager=nil)
|
1167
|
-
kparams = {}
|
1168
|
-
client.add_param(kparams, 'filter', filter)
|
1169
|
-
client.add_param(kparams, 'pager', pager)
|
1170
|
-
perform_request('widget','list',kparams,false)
|
1171
|
-
end
|
1172
|
-
end #class WidgetService
|
1173
|
-
|
1174
|
-
class XInternalService < BaseService
|
1175
|
-
|
1176
|
-
def x_add_bulk_download(entry_ids, flavor_params_id='')
|
1177
|
-
kparams = {}
|
1178
|
-
client.add_param(kparams, 'entryIds', entry_ids)
|
1179
|
-
client.add_param(kparams, 'flavorParamsId', flavor_params_id)
|
1180
|
-
perform_request('xInternal','xAddBulkDownload',kparams,false)
|
1181
|
-
end
|
1182
|
-
end #class XInternalService
|
1183
|
-
|
1184
|
-
class SystemUserService < BaseService
|
1185
|
-
|
1186
|
-
def verify_password(email, password)
|
1187
|
-
kparams = {}
|
1188
|
-
client.add_param(kparams, 'email', email)
|
1189
|
-
client.add_param(kparams, 'password', password)
|
1190
|
-
perform_request('systemUser','verifyPassword',kparams,false)
|
1191
|
-
end
|
1192
|
-
|
1193
|
-
def generate_new_password()
|
1194
|
-
kparams = {}
|
1195
|
-
perform_request('systemUser','generateNewPassword',kparams,false)
|
1196
|
-
end
|
1197
|
-
|
1198
|
-
def set_new_password(user_id, password)
|
1199
|
-
kparams = {}
|
1200
|
-
client.add_param(kparams, 'userId', user_id)
|
1201
|
-
client.add_param(kparams, 'password', password)
|
1202
|
-
perform_request('systemUser','setNewPassword',kparams,false)
|
1203
|
-
end
|
1204
|
-
|
1205
|
-
def add(system_user)
|
1206
|
-
kparams = {}
|
1207
|
-
client.add_param(kparams, 'systemUser', system_user)
|
1208
|
-
perform_request('systemUser','add',kparams,false)
|
1209
|
-
end
|
1210
|
-
|
1211
|
-
def get(user_id)
|
1212
|
-
kparams = {}
|
1213
|
-
client.add_param(kparams, 'userId', user_id)
|
1214
|
-
perform_request('systemUser','get',kparams,false)
|
1215
|
-
end
|
1216
|
-
|
1217
|
-
def get_by_email(email)
|
1218
|
-
kparams = {}
|
1219
|
-
client.add_param(kparams, 'email', email)
|
1220
|
-
perform_request('systemUser','getByEmail',kparams,false)
|
1221
|
-
end
|
1222
|
-
|
1223
|
-
def update(user_id, system_user)
|
1224
|
-
kparams = {}
|
1225
|
-
client.add_param(kparams, 'userId', user_id)
|
1226
|
-
client.add_param(kparams, 'systemUser', system_user)
|
1227
|
-
perform_request('systemUser','update',kparams,false)
|
1228
|
-
end
|
1229
|
-
|
1230
|
-
def delete(user_id)
|
1231
|
-
kparams = {}
|
1232
|
-
client.add_param(kparams, 'userId', user_id)
|
1233
|
-
perform_request('systemUser','delete',kparams,false)
|
1234
|
-
end
|
1235
|
-
|
1236
|
-
def list(filter=nil, pager=nil)
|
1237
|
-
kparams = {}
|
1238
|
-
client.add_param(kparams, 'filter', filter)
|
1239
|
-
client.add_param(kparams, 'pager', pager)
|
1240
|
-
perform_request('systemUser','list',kparams,false)
|
1241
|
-
end
|
1242
|
-
end #class SystemUserService
|
1243
|
-
|
1244
|
-
class SystemPartnerService < BaseService
|
1245
|
-
|
1246
|
-
def get(partner_id)
|
1247
|
-
kparams = {}
|
1248
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
1249
|
-
perform_request('systemPartner','get',kparams,false)
|
1250
|
-
end
|
1251
|
-
|
1252
|
-
def get_usage(partner_filter=nil, usage_filter=nil, pager=nil)
|
1253
|
-
kparams = {}
|
1254
|
-
client.add_param(kparams, 'partnerFilter', partner_filter)
|
1255
|
-
client.add_param(kparams, 'usageFilter', usage_filter)
|
1256
|
-
client.add_param(kparams, 'pager', pager)
|
1257
|
-
perform_request('systemPartner','getUsage',kparams,false)
|
1258
|
-
end
|
1259
|
-
|
1260
|
-
def list(filter=nil, pager=nil)
|
1261
|
-
kparams = {}
|
1262
|
-
client.add_param(kparams, 'filter', filter)
|
1263
|
-
client.add_param(kparams, 'pager', pager)
|
1264
|
-
perform_request('systemPartner','list',kparams,false)
|
1265
|
-
end
|
1266
|
-
|
1267
|
-
def update_status(partner_id, status)
|
1268
|
-
kparams = {}
|
1269
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
1270
|
-
client.add_param(kparams, 'status', status)
|
1271
|
-
perform_request('systemPartner','updateStatus',kparams,false)
|
1272
|
-
end
|
1273
|
-
|
1274
|
-
def get_admin_session(partner_id)
|
1275
|
-
kparams = {}
|
1276
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
1277
|
-
perform_request('systemPartner','getAdminSession',kparams,false)
|
1278
|
-
end
|
1279
|
-
|
1280
|
-
def update_configuration(partner_id, configuration)
|
1281
|
-
kparams = {}
|
1282
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
1283
|
-
client.add_param(kparams, 'configuration', configuration)
|
1284
|
-
perform_request('systemPartner','updateConfiguration',kparams,false)
|
1285
|
-
end
|
1286
|
-
|
1287
|
-
def get_configuration(partner_id)
|
1288
|
-
kparams = {}
|
1289
|
-
client.add_param(kparams, 'partnerId', partner_id)
|
1290
|
-
perform_request('systemPartner','getConfiguration',kparams,false)
|
1291
|
-
end
|
1292
|
-
|
1293
|
-
def get_packages()
|
1294
|
-
kparams = {}
|
1295
|
-
perform_request('systemPartner','getPackages',kparams,false)
|
1296
|
-
end
|
1297
|
-
end #class SystemPartnerService
|
1298
|
-
|
35
|
+
|
1299
36
|
class FileSyncService < BaseService
|
1300
37
|
|
1301
38
|
def list(filter=nil, pager=nil)
|