Class: DropboxApi::Endpoints::Files::ListFolder
- Includes:
- OptionsValidator
- Defined in:
- lib/dropbox_api/endpoints/files/list_folder.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/list_folder'
- ResultType =
DropboxApi::Results::ListFolderResult
- ErrorType =
DropboxApi::Errors::ListFolderError
Instance Method Summary collapse
-
#list_folder(path, options = {}) ⇒ Object
Returns the contents of a folder.
Methods included from OptionsValidator
Methods inherited from Rpc
#build_request, #initialize, #request_body
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Rpc
Instance Method Details
#list_folder(path, options = {}) ⇒ Object
Returns the contents of a folder.
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/dropbox_api/endpoints/files/list_folder.rb', line 29 add_endpoint :list_folder do |path, = {}| ([ :recursive, :include_media_info, :include_deleted, :shared_link, :include_has_explicit_shared_members, :limit ], ) [:recursive] ||= false [:include_media_info] ||= false [:include_deleted] ||= false [:shared_link] = build_shared_link_param([:shared_link]) if [:shared_link] [:limit] = [:limit] if [:limit] perform_request .merge({ path: path }) end |