Sha256: 318c52981a9c9d30ef1943a2fc013a651881a8c0280d2f61c15d762472408821

Contents?: true

Size: 776 Bytes

Versions: 12

Compression:

Stored size: 776 Bytes

Contents

module DropboxApi::Endpoints::Files
  class CopyReferenceGet < DropboxApi::Endpoints::Rpc
    Method      = :post
    Path        = "/2/files/copy_reference/get".freeze
    ResultType  = DropboxApi::Results::GetCopyReferenceResult
    ErrorType   = DropboxApi::Errors::GetCopyReferenceError

    # 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}.
    #
    # @param path [String] The path to the file or folder you want to get a
    #   copy reference to.
    # @return [DropboxApi::Results::GetCopyReferenceResult]
    add_endpoint :copy_reference_get do |path|
      perform_request({
        :path => path
      })
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.17 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.16 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.15 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.14 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.13 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.12 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.11 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.10 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.9 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.8 lib/dropbox_api/endpoints/files/copy_reference_get.rb
dropbox_api-0.1.7 lib/dropbox_api/endpoints/files/copy_reference_get.rb