module DropboxApiV2

Constants

VERSION

Public Class Methods

download(file_path, token) click to toggle source
# File lib/dropbox_api_v2.rb, line 18
def self.download(file_path, token)
  Request.new("/files/download", path: file_path, file_transfer: true, token: token).response
end
find(path, token, args={}) click to toggle source
# File lib/dropbox_api_v2.rb, line 6
def self.find(path, token, args={})
  Request.new("/files/get_metadata", {path: path, token: token}.merge(args)).response
end
list_folder(directory_path, token, args={}) click to toggle source
# File lib/dropbox_api_v2.rb, line 10
def self.list_folder(directory_path, token, args={})
  Request.new("/files/list_folder", {path: directory_path, token: token}.merge(args)).response
end
list_folder_continue(cursor, token) click to toggle source
# File lib/dropbox_api_v2.rb, line 14
def self.list_folder_continue(cursor, token)
  Request.new("/files/list_folder/continue", cursor: cursor, token: token).response
end
thumbnail(file_path, token, args={}) click to toggle source
# File lib/dropbox_api_v2.rb, line 30
def self.thumbnail(file_path, token, args={})
  Request.new("/files/get_thumbnail", {format: "jpeg", size: "w64h64", path: file_path, token: token, file_transfer: true}.merge(args)).response
end
upload(file_path, token, body) click to toggle source
# File lib/dropbox_api_v2.rb, line 22
def self.upload(file_path, token, body)
  Request.new("/files/upload", path: file_path, body: body, file_transfer: true, token: token, mode: :overwrite, mute: true).response
end