Class: DropboxApi::Endpoints::Files::CopyReferenceSave

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

Constant Summary collapse

Method =
:post
Path =
"/2/files/copy_reference/save".freeze
ResultType =
DropboxApi::Results::SaveCopyReferenceResult
ErrorType =
DropboxApi::Errors::SaveCopyReferenceError

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_save(copy_reference, path) ⇒ DropboxApi::Results::SaveCopyReferenceResult

Save a copy reference returned by Client#copy_reference_get to the user's Dropbox.

Parameters:

  • copy_reference (String)

    A copy reference returned by Client#copy_reference_get.

  • path (String)

    Path in the user's Dropbox that is the destination.

Returns:


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

add_endpoint :copy_reference_save do |copy_reference, path|
  perform_request({
    :copy_reference => copy_reference,
    :path => path
  })
end