Class: DropboxApi::Endpoints::Sharing::ListFileMembers
- Includes:
- OptionsValidator
- Defined in:
- lib/dropbox_api/endpoints/sharing/list_file_members.rb
Constant Summary collapse
- Method =
:post
- Path =
"/2/sharing/list_file_members".freeze
- ResultType =
DropboxApi::Results::SharedFileMembers
- ErrorType =
DropboxApi::Errors::SharingFileAccessError
Instance Method Summary collapse
-
#list_file_members(file_id, actions = [], options = {}) ⇒ SharedFileMembers
Use to obtain the members who have been invited to a file, both inherited and uninherited members.
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_file_members(file_id, actions = [], options = {}) ⇒ SharedFileMembers
Use to obtain the members who have been invited to a file, both inherited and uninherited members.
Apps must have full Dropbox access to use this endpoint.
36 37 38 39 40 41 42 43 44 |
# File 'lib/dropbox_api/endpoints/sharing/list_file_members.rb', line 36 add_endpoint :list_file_members do |file_id, actions = [], = {}| ([:limit, :include_inherited], ) [:limit] ||= 100 perform_request .merge({ :file => file_id, :actions => DropboxApi::Metadata::MemberActionList.new(actions) }) end |