Class: Kaltura::Service::BulkUploadService
- Inherits:
-
BaseService
- Object
- BaseService
- Kaltura::Service::BulkUploadService
- Defined in:
- lib/kaltura/service/bulk_upload_service.rb
Overview
The Bulk upload service is used to upload and manage bulk uploads using CSV files. This service is available through the KMC and typically would be a one-off, though you could choose to use it with a web application.
Instance Attribute Summary
Attributes inherited from BaseService
Instance Method Summary collapse
-
#add(conversion_profile_id, csv_file_data) ⇒ Kaltura::BulkUpload
Adds a new bulk upload batch job.
-
#get(id) ⇒ Kaltura::BulkUpload
Retrieves a BulkUpload object.
-
#list(pager = nil) ⇒ Kaltura::Response::BulkUploadListResponse, Kaltura::APIError
Lists bulk upload batch jobs given a pager index and size.
Methods inherited from BaseService
Constructor Details
This class inherits a constructor from Kaltura::Service::BaseService
Instance Method Details
#add(conversion_profile_id, csv_file_data) ⇒ Kaltura::BulkUpload
Adds a new bulk upload batch job. The conversion profile ID can be either specified in the API or in the CSV file itself. The attribute in the CSV overrides the API ID. The partner’s default conversion profile will be used if no ID is provided.
37 38 39 40 41 42 |
# File 'lib/kaltura/service/bulk_upload_service.rb', line 37 def add(conversion_profile_id, csv_file_data) kparams = {} client.add_param(kparams, 'conversionProfileId', conversion_profile_id) client.add_param(kparams, 'csvFileData', csv_file_data) perform_request('bulkUpload','add',kparams,false) end |
#get(id) ⇒ Kaltura::BulkUpload
Retrieves a BulkUpload object.
53 54 55 56 57 |
# File 'lib/kaltura/service/bulk_upload_service.rb', line 53 def get(id) kparams = {} client.add_param(kparams, 'id', id) perform_request('bulkUpload','get',kparams,false) end |
#list(pager = nil) ⇒ Kaltura::Response::BulkUploadListResponse, Kaltura::APIError
Lists bulk upload batch jobs given a pager index and size.
68 69 70 71 72 |
# File 'lib/kaltura/service/bulk_upload_service.rb', line 68 def list(pager=nil) kparams = {} client.add_param(kparams, 'pager', pager) perform_request('bulkUpload','list',kparams,false) end |