Class: DropboxApi::Endpoints::Files::CopyReferenceGet

Inherits:
Rpc
  • Object
show all
Defined in:
lib/dropbox_api/endpoints/files/copy_reference_get.rb

Constant Summary collapse

Method =
:post
Path =
"/2/files/copy_reference/get".freeze
ResultType =
DropboxApi::Results::GetCopyReferenceResult
ErrorType =
DropboxApi::Errors::GetCopyReferenceError

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

#copy_reference_get(path) ⇒ DropboxApi::Results::GetCopyReferenceResult

Get a copy reference to a file or folder. This reference string can be used to save that file or folder to another user's Dropbox by passing it to Client#copy_reference_save.

Parameters:

  • path (String)

    The path to the file or folder you want to get a copy reference to.

Returns:



15
16
17
18
19
# File 'lib/dropbox_api/endpoints/files/copy_reference_get.rb', line 15

add_endpoint :copy_reference_get do |path|
  perform_request({
    :path => path
  })
end