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".freeze
- 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.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/dropbox_api/endpoints/files/list_folder.rb', line 24 add_endpoint :list_folder do |path, = {}| ([ :recursive, :include_media_info, :include_deleted, :shared_link, :include_has_explicit_shared_members ], ) [:recursive] ||= false [:include_media_info] ||= false [:include_deleted] ||= false [:shared_link] = build_shared_link_param([:shared_link]) if [:shared_link] perform_request .merge({ :path => path }) end |