Class: DropboxApi::Endpoints::Files::CopyReferenceGet
- 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
-
#copy_reference_get(path) ⇒ DropboxApi::Results::GetCopyReferenceResult
Get a copy reference to a file or folder.
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
#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.
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 |