Class: Kaltura::KalturaUploadService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaUploadService
- Defined in:
- lib/kaltura_client.rb
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
- #get_uploaded_file_token_by_file_name(file_name) ⇒ KalturaUploadResponse
-
#initialize(client) ⇒ KalturaUploadService
constructor
A new instance of KalturaUploadService.
- #upload(file_data) ⇒ string
Constructor Details
#initialize(client) ⇒ KalturaUploadService
Returns a new instance of KalturaUploadService.
5126 5127 5128 |
# File 'lib/kaltura_client.rb', line 5126 def initialize(client) super(client) end |
Instance Method Details
#get_uploaded_file_token_by_file_name(file_name) ⇒ KalturaUploadResponse
5131 5132 5133 5134 5135 5136 5137 5138 5139 |
# File 'lib/kaltura_client.rb', line 5131 def get_uploaded_file_token_by_file_name(file_name) kparams = {} client.add_param(kparams, 'fileName', file_name) client.queue_service_action_call('upload', 'getUploadedFileTokenByFileName', 'KalturaUploadResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#upload(file_data) ⇒ string
5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 |
# File 'lib/kaltura_client.rb', line 5142 def upload(file_data) kparams = {} kfiles = {} client.add_param(kfiles, 'fileData', file_data) client.queue_service_action_call('upload', 'upload', 'string', kparams, kfiles) if (client.is_multirequest) return nil end return client.do_queue() end |