Method: FileboundClient::Endpoints::Files#file

Defined in:
lib/filebound_client/endpoints/files.rb

#file(file_id, query_params = nil) ⇒ Hash

Retrieves a single file by its key

Parameters:

  • file_id (int)

    the file key

  • query_params (Hash) (defaults to: nil)

    additional query params to send in the request (optional params: filter)

Returns:

  • (Hash)

    the file hash



17
18
19
# File 'lib/filebound_client/endpoints/files.rb', line 17

def file(file_id, query_params = nil)
  get("/files/#{file_id}", query_params)
end