Class: DropboxApi::Endpoints::Files::Download

Inherits:
ContentDownload show all
Defined in:
lib/dropbox_api/endpoints/files/download.rb

Constant Summary collapse

Method =
:post
Path =
"/2/files/download".freeze
ResultType =
DropboxApi::Metadata::File
ErrorType =
DropboxApi::Errors::DownloadError

Instance Method Summary collapse

Methods inherited from ContentDownload

#build_request, #initialize, #perform_request

Methods inherited from Base

add_endpoint

Constructor Details

This class inherits a constructor from DropboxApi::Endpoints::ContentDownload

Instance Method Details

#download(path, &block) ⇒ Object

Download a file from a user's Dropbox.

Parameters:

  • path (String)

    The path of the file to download.



11
12
13
# File 'lib/dropbox_api/endpoints/files/download.rb', line 11

add_endpoint :download do |path, &block|
  perform_request({:path => path}, &block)
end