Class: DropboxApi::Endpoints::Files::GetTemporaryLink
- Defined in:
- lib/dropbox_api/endpoints/files/get_temporary_link.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/get_temporary_link'
- ResultType =
DropboxApi::Results::GetTemporaryLinkResult
- ErrorType =
DropboxApi::Errors::GetMetadataError
Instance Method Summary collapse
-
#get_temporary_link(path) ⇒ Object
Get a temporary link to stream content of a file.
Methods inherited from Rpc
#build_connection, #build_request, #request_body
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Base
Instance Method Details
#get_temporary_link(path) ⇒ Object
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.
14 15 16 |
# File 'lib/dropbox_api/endpoints/files/get_temporary_link.rb', line 14 add_endpoint :get_temporary_link do |path| perform_request({path: path}) end |