Class: DropboxApi::Endpoints::Files::SaveUrl
- Defined in:
- lib/dropbox_api/endpoints/files/save_url.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/files/save_url'
- ResultType =
DropboxApi::Results::SaveUrlResult
- ErrorType =
DropboxApi::Errors::SaveUrlError
Instance Method Summary collapse
-
#save_url(path, url) ⇒ Object
Save a specified URL into a file in user's Dropbox.
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
#save_url(path, url) ⇒ Object
Save a specified URL into a file in user's Dropbox. If the given path already exists, the file will be renamed to avoid the conflict (e.g. myfile (1).txt).
16 17 18 19 20 21 |
# File 'lib/dropbox_api/endpoints/files/save_url.rb', line 16 add_endpoint :save_url do |path, url| perform_request({ path: path, url: url }) end |