Sha256: cfbeb37e0e6560b6996f948145476886783543b21829b569a0df389877b8ae0c

Contents?: true

Size: 483 Bytes

Versions: 14

Compression:

Stored size: 483 Bytes

Contents

module DropboxApi::Endpoints::Files
  class Download < DropboxApi::Endpoints::ContentDownload
    Method      = :post
    Path        = "/2/files/download".freeze
    ResultType  = DropboxApi::Metadata::File
    ErrorType   = DropboxApi::Errors::DownloadError

    # Download a file from a user's Dropbox.
    #
    # @param path [String] The path of the file to download.
    add_endpoint :download do |path, &block|
      perform_request({:path => path}, &block)
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.17 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.16 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.15 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.14 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.13 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.12 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.11 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.10 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.9 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.8 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.7 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.6 lib/dropbox_api/endpoints/files/download.rb
dropbox_api-0.1.5 lib/dropbox_api/endpoints/files/download.rb