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'
ResultType =
DropboxApi::Results::VoidResult
ErrorType =
DropboxApi::Errors::UnshareFileError

Instance Method Summary collapse

Methods inherited from Rpc

#build_connection, #build_request, #request_body

Methods inherited from Base

add_endpoint, #initialize

Constructor Details

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

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.



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

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