class UnFichierApi::File

Public Class Methods

change_attributes(urls: [], filename: nil, description: nil, pass: nil, no_ssl: nil, inline: nil, cdn: nil, acl: { ip: [], country: [], email: [], premium: nil }) click to toggle source
# File lib/un_fichier_api/file.rb, line 7
def change_attributes(urls: [], filename: nil, description: nil, pass: nil, no_ssl: nil, inline: nil, cdn: nil, acl: { ip: [], country: [], email: [], premium: nil })
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('chattr'), body: body
end
copy(urls: [], folder_id: nil, pass: nil, sharing_user: nil, rename: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 12
def copy(urls: [], folder_id: nil, pass: nil, sharing_user: nil, rename: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('cp'), body: body
end
download(url: nil, inline: nil, cdn: nil, restrict_ip: nil, single: nil, pass: nil, no_ssl: nil, folder_id: nil, filename: nil, sharing_user: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 17
def download(url: nil, inline: nil, cdn: nil, restrict_ip: nil, single: nil, pass: nil, no_ssl: nil, folder_id: nil, filename: nil, sharing_user: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: 'download/get_token.cgi', body: body
end
info(url: nil, pass: nil, folder_id: nil, filename: nil, sharing_user: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 22
def info(url: nil, pass: nil, folder_id: nil, filename: nil, sharing_user: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('info'), body: body
end
list(folder_id: nil, sharing_user: nil, sent_before: nil, sent_after: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 27
def list(folder_id: nil, sharing_user: nil, sent_before: nil, sent_after: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('ls'), body: body
end
move(urls: [], destination_folder_id: nil, destination_user: nil, rename: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 32
def move(urls: [], destination_folder_id: nil, destination_user: nil, rename: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('mv'), body: body
end
remove(files: []) click to toggle source
# File lib/un_fichier_api/file.rb, line 37
def remove(files: [])
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('rm'), body: body
end
rename(urls: []) click to toggle source
# File lib/un_fichier_api/file.rb, line 42
def rename(urls: [])
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('rename'), body: body
end
scan(url: nil) click to toggle source
# File lib/un_fichier_api/file.rb, line 47
def scan(url: nil)
  body = body_from_parameters parameters: method(__method__).parameters, method_binding: binding
  call path: action_route('scan'), body: body
end