Class: DropboxApi::Endpoints::Sharing::GetSharedLinkMetadata
- Includes:
- OptionsValidator
- Defined in:
- lib/dropbox_api/endpoints/sharing/get_shared_link_metadata.rb
Constant Summary collapse
- Method =
:post
- Path =
'/2/sharing/get_shared_link_metadata'
- ResultType =
DropboxApi::Metadata::SharedLinkMetadata
- ErrorType =
DropboxApi::Errors::SharedLinkError
Instance Method Summary collapse
-
#get_shared_link_metadata(preview_link, options = {}) ⇒ SharedFileMembers
Get the Metadata for a shared link.
Methods included from OptionsValidator
Methods inherited from Rpc
#build_request, #initialize, #request_body
Methods inherited from Base
Constructor Details
This class inherits a constructor from DropboxApi::Endpoints::Rpc
Instance Method Details
#get_shared_link_metadata(preview_link, options = {}) ⇒ SharedFileMembers
Get the Metadata for a shared link
If a preview url is given, returns the shared file or folder that is represent by that link.
23 24 25 26 27 28 29 |
# File 'lib/dropbox_api/endpoints/sharing/get_shared_link_metadata.rb', line 23 add_endpoint :get_shared_link_metadata do |preview_link, = {}| ([:path, :link_password], ) perform_request .merge( url: preview_link ) end |