Sha256: 90b131074b8e26992f165f31fcad8c49b37fa44b480588bb1a9e36f885057b9b

Contents?: true

Size: 695 Bytes

Versions: 14

Compression:

Stored size: 695 Bytes

Contents

module DropboxApi::Endpoints::Files
  class GetTemporaryLink < DropboxApi::Endpoints::Rpc
    Method      = :post
    Path        = "/2/files/get_temporary_link".freeze
    ResultType  = DropboxApi::Results::GetTemporaryLinkResult
    ErrorType   = DropboxApi::Errors::GetMetadataError

    # Get a temporary link to stream content of a file. This link will expire
    # in four hours and afterwards you will get 410 Gone. Content-Type of the
    # link is determined automatically by the file's mime type.
    #
    # @param path [String] The path to the file you want a temporary link to.
    add_endpoint :get_temporary_link do |path|
      perform_request({:path => path})
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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