Sha256: 1dcd7f017cf1d6bb3b01cfb6debc90e08660f4e749f82133a57ee642455cc991
Contents?: true
Size: 1.31 KB
Versions: 13
Compression:
Stored size: 1.31 KB
Contents
module Vidispine::API::Client::Requests # Exposes two functions # 1. Get status of file in storage # @see http://apidoc.vidispine.com/4.2.3/ref/storage/file.html#get-status-of-file-in-storage # # 2. Get direct download access to file in storage # @see http://apidoc.vidispine.com/4.2.3/ref/storage/file.html#get-direct-download-access-to-file-in-storage class StorageFileGet < BaseRequest HTTP_PATH = '/storage/#{path_arguments[:storage_id]}/file/#{path_arguments[:file_id]}' PARAMETERS = [ # Path Parameters { :name => :storage_id, :required => true, :send_in => :path }, { :name => :file_id, :required => true, :send_in => :path }, # Matrix Parameters { :name => :includeItem, :send_in => :matrix }, { :name => :path, :send_in => :matrix }, { :name => :uri, :send_in => :matrix }, # Query Parameters :methodType ] def after_process_parameters # URI Needs to be escaped twice, so we do it once here and then again when the query is built # @see http://apidoc.vidispine.com/4.2.6/storage/uri.html#api-calls _uri = arguments[:uri] arguments[:uri] = CGI.escape(_uri).gsub('+', '%20') if _uri _path =arguments[:path] arguments[:path] = CGI.escape(_path).gsub('+', '%20') if _path end end end
Version data entries
13 entries across 13 versions & 1 rubygems