Class: DropboxApi::Endpoints::Sharing::UnshareFile

Inherits:
Rpc
  • Object
show all
Defined in:
lib/dropbox_api/endpoints/sharing/unshare_file.rb

Constant Summary collapse

Method =
:post
Path =
"/2/sharing/unshare_file".freeze
ResultType =
DropboxApi::Results::VoidResult
ErrorType =
DropboxApi::Errors::UnshareFileError

Instance Method Summary collapse

Methods inherited from Rpc

#build_request, #initialize, #request_body

Methods inherited from Base

add_endpoint

Constructor Details

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

Instance Method Details

#unshare_file(file) ⇒ Object

Remove all members from this file. Does not remove inherited members.

A successful response indicates that the file was unshared.

Parameters:

  • file (String)

    Path or ID of the file in the user's Dropbox to unshare.



13
14
15
16
17
# File 'lib/dropbox_api/endpoints/sharing/unshare_file.rb', line 13

add_endpoint :unshare_file do |file|
  perform_request({
    :file => file
  })
end