Class: DropboxApi::Endpoints::Files::Download
- Inherits:
-
ContentDownload
- Object
- Base
- ContentDownload
- DropboxApi::Endpoints::Files::Download
- Defined in:
- lib/dropbox_api/endpoints/files/download.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/download'
- ResultType =
DropboxApi::Metadata::File
- ErrorType =
DropboxApi::Errors::DownloadError
Instance Method Summary collapse
-
#download(path, &block) ⇒ Object
Download a file from a user's Dropbox.
Methods inherited from ContentDownload
#build_connection, #build_request, #perform_request
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Base
Instance Method Details
#download(path, &block) ⇒ Object
Download a file from a user's Dropbox.
12 13 14 |
# File 'lib/dropbox_api/endpoints/files/download.rb', line 12 add_endpoint :download do |path, &block| perform_request({path: path}, &block) end |